Enum Statement.ClassId
- java.lang.Object
-
- java.lang.Enum<Statement.ClassId>
-
- com.priint.pubserver.comet.entity.statement.Statement.ClassId
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Statement.ClassId>
- Enclosing class:
- Statement
public static enum Statement.ClassId extends java.lang.Enum<Statement.ClassId>
The Enum ClassId.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEMENTThe element.PLACEHOLDERThe placeholder.PREVIEWThe preview.PRODUCTThe product.PUBLICATIONThe publication.SETTINGThe setting.TEMPLATEThe template.TODOThe todo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Gets the id.static Statement.ClassIdvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Statement.ClassId[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCT
public static final Statement.ClassId PRODUCT
The product.
-
ELEMENT
public static final Statement.ClassId ELEMENT
The element.
-
PREVIEW
public static final Statement.ClassId PREVIEW
The preview.
-
TEMPLATE
public static final Statement.ClassId TEMPLATE
The template.
-
PUBLICATION
public static final Statement.ClassId PUBLICATION
The publication.
-
TODO
public static final Statement.ClassId TODO
The todo.
-
PLACEHOLDER
public static final Statement.ClassId PLACEHOLDER
The placeholder.
-
SETTING
public static final Statement.ClassId SETTING
The setting.
-
-
Method Detail
-
values
public static Statement.ClassId[] 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 (Statement.ClassId c : Statement.ClassId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Statement.ClassId valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
public int getId()
Gets the id.- Returns:
- the id
-
-