Package com.logicaldoc.scheme
Enum SchemeToken
- java.lang.Object
-
- java.lang.Enum<SchemeToken>
-
- com.logicaldoc.scheme.SchemeToken
-
- All Implemented Interfaces:
Serializable
,Comparable<SchemeToken>
public enum SchemeToken extends Enum<SchemeToken>
Defines the set of supported tokens.- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATION
CUSTOMID
DD
EXTENSION
FILENAME
FOLDER
FOLDER_SEQ
FOLDER_TEMPLATE_SEQ
ID
MM
MONTH
MONTH_SEQ
PATH
STANDARD_SEQ
TEMPLATE
TEMPLATE_MONTH_SEQ
TEMPLATE_SEQ
TEMPLATE_YEAR_SEQ
TITLE
VERSION
YEAR
YEAR_SEQ
YY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
exists(String token)
String
getName()
String
toString()
static SchemeToken
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchemeToken[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID
public static final SchemeToken ID
-
TITLE
public static final SchemeToken TITLE
-
EXTENSION
public static final SchemeToken EXTENSION
-
FILENAME
public static final SchemeToken FILENAME
-
CUSTOMID
public static final SchemeToken CUSTOMID
-
TEMPLATE
public static final SchemeToken TEMPLATE
-
VERSION
public static final SchemeToken VERSION
-
PATH
public static final SchemeToken PATH
-
YEAR
public static final SchemeToken YEAR
-
MONTH
public static final SchemeToken MONTH
-
YY
public static final SchemeToken YY
-
MM
public static final SchemeToken MM
-
DD
public static final SchemeToken DD
-
YEAR_SEQ
public static final SchemeToken YEAR_SEQ
-
STANDARD_SEQ
public static final SchemeToken STANDARD_SEQ
-
MONTH_SEQ
public static final SchemeToken MONTH_SEQ
-
TEMPLATE_SEQ
public static final SchemeToken TEMPLATE_SEQ
-
TEMPLATE_YEAR_SEQ
public static final SchemeToken TEMPLATE_YEAR_SEQ
-
TEMPLATE_MONTH_SEQ
public static final SchemeToken TEMPLATE_MONTH_SEQ
-
FOLDER
public static final SchemeToken FOLDER
-
FOLDER_SEQ
public static final SchemeToken FOLDER_SEQ
-
FOLDER_TEMPLATE_SEQ
public static final SchemeToken FOLDER_TEMPLATE_SEQ
-
AUTOMATION
public static final SchemeToken AUTOMATION
-
-
Method Detail
-
values
public static SchemeToken[] 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 (SchemeToken c : SchemeToken.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemeToken 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
-
exists
public static boolean exists(String token)
-
getName
public String getName()
-
toString
public String toString()
- Overrides:
toString
in classEnum<SchemeToken>
-
-