Package net.sf.okapi.filters.yaml.parser
Enum YamlNodeTypes
- java.lang.Object
-
- java.lang.Enum<YamlNodeTypes>
-
- net.sf.okapi.filters.yaml.parser.YamlNodeTypes
-
- All Implemented Interfaces:
Serializable,Comparable<YamlNodeTypes>
public enum YamlNodeTypes extends Enum<YamlNodeTypes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_MAPBLOCK_SEQUENCEFLOW_MAPFLOW_SEQUENCESCALARUNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static YamlNodeTypesvalueOf(String name)Returns the enum constant of this type with the specified name.static YamlNodeTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCALAR
public static final YamlNodeTypes SCALAR
-
BLOCK_SEQUENCE
public static final YamlNodeTypes BLOCK_SEQUENCE
-
BLOCK_MAP
public static final YamlNodeTypes BLOCK_MAP
-
FLOW_SEQUENCE
public static final YamlNodeTypes FLOW_SEQUENCE
-
FLOW_MAP
public static final YamlNodeTypes FLOW_MAP
-
UNKNOWN
public static final YamlNodeTypes UNKNOWN
-
-
Method Detail
-
values
public static YamlNodeTypes[] 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 (YamlNodeTypes c : YamlNodeTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static YamlNodeTypes 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
-
-