org.jrdf.query.relation.type
Class LiteralNodeType

java.lang.Object
  extended by org.jrdf.query.relation.type.LiteralNodeType
All Implemented Interfaces:
Serializable, NodeType, ValueNodeType

public final class LiteralNodeType
extends Object
implements ValueNodeType

A literal node type.

Version:
$Revision: 1842 $
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
LiteralNodeType()
           
 
Method Summary
 void accept(NodeTypeVisitor visitor)
          Accept a call from a NodeTypeVisitor.
 Set<? extends NodeType> composedOf()
          Returns the sub-types of a composite type.
 boolean equals(Object obj)
           
 String getName()
          Returns the name of the type.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteralNodeType

public LiteralNodeType()
Method Detail

composedOf

public Set<? extends NodeType> composedOf()
Description copied from interface: NodeType
Returns the sub-types of a composite type.

Specified by:
composedOf in interface NodeType
Returns:
the sub-types of a composite type.

accept

public void accept(NodeTypeVisitor visitor)
Description copied from interface: NodeType
Accept a call from a NodeTypeVisitor.

Specified by:
accept in interface NodeType
Parameters:
visitor - the object doing the visiting.

getName

public String getName()
Description copied from interface: NodeType
Returns the name of the type.

Specified by:
getName in interface NodeType
Returns:
the name of the type.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object