Enum CometTemplate.PageBreak
- java.lang.Object
-
- java.lang.Enum<CometTemplate.PageBreak>
-
- com.priint.pubserver.comet.entity.template.CometTemplate.PageBreak
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CometTemplate.PageBreak>
- Enclosing class:
- CometTemplate
public static enum CometTemplate.PageBreak extends java.lang.Enum<CometTemplate.PageBreak>
The Enum PageBreak.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_PAGEThe any page.LEFT_PAGEThe left page.NONEThe none.RIGHT_PAGEThe right page.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExternId()Gets the extern id.static CometTemplate.PageBreakvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CometTemplate.PageBreak[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final CometTemplate.PageBreak NONE
The none.
-
ANY_PAGE
public static final CometTemplate.PageBreak ANY_PAGE
The any page.
-
LEFT_PAGE
public static final CometTemplate.PageBreak LEFT_PAGE
The left page.
-
RIGHT_PAGE
public static final CometTemplate.PageBreak RIGHT_PAGE
The right page.
-
-
Method Detail
-
values
public static CometTemplate.PageBreak[] 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 (CometTemplate.PageBreak c : CometTemplate.PageBreak.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CometTemplate.PageBreak 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
-
getExternId
public int getExternId()
Gets the extern id.- Returns:
- the extern id
-
-