Enum ObjectPropertyType
- java.lang.Object
-
- java.lang.Enum<ObjectPropertyType>
-
- com.gentics.contentnode.rest.model.ObjectPropertyType
-
- All Implemented Interfaces:
Serializable
,Comparable<ObjectPropertyType>
public enum ObjectPropertyType extends Enum<ObjectPropertyType>
Types of objects having object properties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Get the codestatic ObjectPropertyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ObjectPropertyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
folder
public static final ObjectPropertyType folder
Folder
-
template
public static final ObjectPropertyType template
Template
-
page
public static final ObjectPropertyType page
Page
-
file
public static final ObjectPropertyType file
File
-
image
public static final ObjectPropertyType image
Image
-
-
Method Detail
-
values
public static ObjectPropertyType[] 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 (ObjectPropertyType c : ObjectPropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectPropertyType 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
-
getCode
public int getCode()
Get the code- Returns:
- code
-
-