org.jrdf.util
Enum NodeTypeEnum

java.lang.Object
  extended by java.lang.Enum<NodeTypeEnum>
      extended by 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

Enum Constant Summary
BLANK_NODE
          The order of the three different types of RDF nodes.
LITERAL
           
URI_REFERENCE
           
 
Method Summary
static NodeTypeEnum getNodeType(Class<? extends NodeType> nodeClass)
           
 boolean isBlankNode()
           
 boolean isLiteralNode()
           
 boolean isURIReferenceNode()
           
static NodeTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeTypeEnum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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)