org.jrdf.util
Enum NodeTypeEnum
java.lang.Object
java.lang.Enum<NodeTypeEnum>
org.jrdf.util.NodeTypeEnum
- All Implemented Interfaces:
- Serializable, Comparable<NodeTypeEnum>
public enum NodeTypeEnum
- extends Enum<NodeTypeEnum>
Enumeration for node types.
- Version:
- $Id: NodeTypeEnum.java 1045 2007-01-05 04:56:09Z newmana $
- Author:
- Andrew Newman
BLANK_NODE
public static final NodeTypeEnum BLANK_NODE
- The order of the three different types of RDF nodes.
URI_REFERENCE
public static final NodeTypeEnum URI_REFERENCE
LITERAL
public static final NodeTypeEnum LITERAL
values
public static final NodeTypeEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(NodeTypeEnum c : NodeTypeEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static NodeTypeEnum 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 name
isBlankNode
public boolean isBlankNode()
isURIReferenceNode
public boolean isURIReferenceNode()
isLiteralNode
public boolean isLiteralNode()
getNodeType
public static NodeTypeEnum getNodeType(Class<? extends NodeType> nodeClass)