Package no.hasmac.rdf.io.nquad
Enum Tokenizer.TokenType
- java.lang.Object
-
- java.lang.Enum<Tokenizer.TokenType>
-
- no.hasmac.rdf.io.nquad.Tokenizer.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Tokenizer.TokenType>
- Enclosing class:
- Tokenizer
protected static enum Tokenizer.TokenType extends java.lang.Enum<Tokenizer.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLANK_NODE_LABEL
COMMENT
END_OF_INPUT
END_OF_LINE
END_OF_STATEMENT
IRI_REF
LANGTAG
LITERAL_DATA_TYPE
STRING_LITERAL_QUOTE
WHITE_SPACE
-
Constructor Summary
Constructors Modifier Constructor Description private
TokenType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tokenizer.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Tokenizer.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LANGTAG
public static final Tokenizer.TokenType LANGTAG
-
IRI_REF
public static final Tokenizer.TokenType IRI_REF
-
STRING_LITERAL_QUOTE
public static final Tokenizer.TokenType STRING_LITERAL_QUOTE
-
BLANK_NODE_LABEL
public static final Tokenizer.TokenType BLANK_NODE_LABEL
-
WHITE_SPACE
public static final Tokenizer.TokenType WHITE_SPACE
-
LITERAL_DATA_TYPE
public static final Tokenizer.TokenType LITERAL_DATA_TYPE
-
COMMENT
public static final Tokenizer.TokenType COMMENT
-
END_OF_STATEMENT
public static final Tokenizer.TokenType END_OF_STATEMENT
-
END_OF_LINE
public static final Tokenizer.TokenType END_OF_LINE
-
END_OF_INPUT
public static final Tokenizer.TokenType END_OF_INPUT
-
-
Method Detail
-
values
public static Tokenizer.TokenType[] 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 (Tokenizer.TokenType c : Tokenizer.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tokenizer.TokenType 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
-
-