public enum HeaderType extends Enum<HeaderType>
HeaderDefinition
Modifier and Type | Method and Description |
---|---|
static Map<String,HeaderDefinition> |
defaultDefinitions()
Returns the header definitions of every default definitions declared by this enumeration as a map using the
header type name as key.
|
static HeaderType |
fromName(String name)
Returns the
HeaderType declared in this enumeration for the given header type name. |
HeaderDefinition |
getDefinition()
Returns the
HeaderDefinition which corresponds to this enumeration instance. |
static HeaderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HeaderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeaderType JAVADOC_STYLE
public static final HeaderType SCRIPT_STYLE
public static final HeaderType HAML_STYLE
public static final HeaderType XML_STYLE
public static final HeaderType SEMICOLON_STYLE
public static final HeaderType APOSTROPHE_STYLE
public static final HeaderType EXCLAMATION_STYLE
public static final HeaderType DOUBLEDASHES_STYLE
public static final HeaderType SLASHSTAR_STYLE
public static final HeaderType BRACESSTAR_STYLE
public static final HeaderType SHARPSTAR_STYLE
public static final HeaderType DOUBLETILDE_STYLE
public static final HeaderType DYNASCRIPT_STYLE
public static final HeaderType DYNASCRIPT3_STYLE
public static final HeaderType PERCENT3_STYLE
public static final HeaderType EXCLAMATION3_STYLE
public static final HeaderType DOUBLESLASH_STYLE
public static final HeaderType PHP
public static final HeaderType ASP
public static final HeaderType LUA
public static final HeaderType FTL
public static final HeaderType FTL_ALT
public static final HeaderType TEXT
public static final HeaderType BATCH
public static final HeaderType UNKNOWN
public static HeaderType[] values()
for (HeaderType c : HeaderType.values()) System.out.println(c);
public static HeaderType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic HeaderDefinition getDefinition()
HeaderDefinition
which corresponds to this enumeration instance.public static HeaderType fromName(String name)
HeaderType
declared in this enumeration for the given header type name.name
- The header definition type name.HeaderType
declared in this enumeration if found or UNKNOWN
.public static Map<String,HeaderDefinition> defaultDefinitions()
Copyright © 2008-2012 Mathieu Carbou. All Rights Reserved.