|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nsdl.mptstore.query.component.BasicNodePattern<T>
T
- The type of node that is described by the pattern. Typically,
this is one of SubjectNode, PredicateNode, ObjectNode, or just Node if the
exact node type is unimportant or unknown.public class BasicNodePattern<T extends Node>
Generic implementation of NodePattern
.
Constructor Summary | |
---|---|
BasicNodePattern(java.lang.String variable)
Construct a BasicNodePattern representing a variable. |
|
BasicNodePattern(T node)
Construct a BasicNodePattern representing an actual node. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object p)
Equality of Triple Pattern |
T |
getNode()
Get the node value of this pattern, or null if this pattern does not represent a variable. |
java.lang.String |
getVarName()
Get the variable name of this pattern, or null if this pattern does not represent a variable. |
int |
hashCode()
Get a hash code for this node pattern. |
boolean |
isVariable()
Tell whether this node pattern represents a variable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicNodePattern(T node)
node
- the node.public BasicNodePattern(java.lang.String variable)
variable
- the variable name.Method Detail |
---|
public T getNode()
getNode
in interface NodePattern<T extends Node>
public java.lang.String getVarName()
getVarName
in interface NodePattern<T extends Node>
public boolean isVariable()
isVariable
in interface NodePattern<T extends Node>
public boolean equals(java.lang.Object p)
Equality of triple patterns follow the following rules:
equals
in class java.lang.Object
p
- the object to compare this one to.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |