org.jrdf.query.relation.type
Class PredicateNodeType

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

public final class PredicateNodeType
extends Object
implements PositionalNodeType

An predicate node type.

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

Field Summary
static NodeType PREDICATE_TYPE
          PredicateNodeType constant.
 
Constructor Summary
PredicateNodeType()
           
 
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()
           
 PositionalNodeType upgrade(PositionalNodeType newNodeType)
          Given a new node type what is the new compound node type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREDICATE_TYPE

public static final NodeType PREDICATE_TYPE
PredicateNodeType constant.

Constructor Detail

PredicateNodeType

public PredicateNodeType()
Method Detail

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.

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.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

upgrade

public PositionalNodeType upgrade(PositionalNodeType newNodeType)
Description copied from interface: PositionalNodeType
Given a new node type what is the new compound node type. For example, if this was a SubjectNodeType and it was given a parameter of ObjectNodeType it should return SubjectObjectNodeType.

Specified by:
upgrade in interface PositionalNodeType
Parameters:
newNodeType - the new node type to upgrade the current node type to.
Returns:
the new instance of a compound node type.