Enum CmpProduct
- java.lang.Object
-
- java.lang.Enum<CmpProduct>
-
- com.gentics.contentnode.rest.model.CmpProduct
-
- All Implemented Interfaces:
Serializable
,Comparable<CmpProduct>
public enum CmpProduct extends Enum<CmpProduct>
Products used in the Gentics Content Management Platform.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CMS
MESH
PORTAL_ESSENTIALS
PORTAL_JAVA
PORTAL_PHP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmpProduct
forName(String productName)
Return the respective enum value for the given product name.String
productName()
Get the product name for this enum value.String
shortCode()
Get the short code for this enum value.static CmpProduct
valueOf(String name)
Returns the enum constant of this type with the specified name.static CmpProduct[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CMS
public static final CmpProduct CMS
-
MESH
public static final CmpProduct MESH
-
PORTAL_JAVA
public static final CmpProduct PORTAL_JAVA
-
PORTAL_PHP
public static final CmpProduct PORTAL_PHP
-
PORTAL_ESSENTIALS
public static final CmpProduct PORTAL_ESSENTIALS
-
-
Method Detail
-
values
public static CmpProduct[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmpProduct c : CmpProduct.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmpProduct valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forName
public static CmpProduct forName(String productName)
Return the respective enum value for the given product name.- Parameters:
productName
- The product name to find an enum value for- Returns:
- The respective enum value for the given product name
-
shortCode
public String shortCode()
Get the short code for this enum value.The short code is also used for deserialization.
- Returns:
- The short code for this enum value
-
productName
public String productName()
Get the product name for this enum value.- Returns:
- The product name for this enum value
-
-