|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.enhanced.Polymorphic
com.hp.hpl.jena.enhanced.EnhNode
public class EnhNode
A specialisation of Polymorphic that models an extended node in a an extended graph. An extended node wraps a normal node, and adds additional convenience access or user affordances, though the state remains in the graph itself.
Constructor Summary | |
---|---|
EnhNode(Node n,
EnhGraph g)
|
Method Summary | |
---|---|
RDFNode |
as(Class t)
allow subclasses to implement RDFNode & its subinterface |
Node |
asNode()
Answer the graph node that this enhanced node wraps |
boolean |
canAs(Class t)
API-level method for polymorphic testing |
boolean |
equals(Object o)
An enhanced node is equal to another enhanced node n iff the underlying nodes are equal. |
EnhGraph |
getGraph()
Answer the graph containing this node |
int |
hashCode()
The hash code of an enhanced node is defined to be the same as the underlying node. |
boolean |
isValid()
answer true iff this enhanced node is still underpinned in the graph by triples appropriate to its type. |
EnhNode |
viewAs(Class t)
Answer a facet of this node, where that facet is denoted by the given type. |
Methods inherited from class com.hp.hpl.jena.enhanced.Polymorphic |
---|
addView, supports |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnhNode(Node n, EnhGraph g)
Method Detail |
---|
public Node asNode()
asNode
in interface FrontsNode
public EnhGraph getGraph()
public EnhNode viewAs(Class t)
t
- A type denoting the desired facet of the underlying node
public RDFNode as(Class t)
public boolean canAs(Class t)
public final int hashCode()
hashCode
in class Object
public final boolean equals(Object o)
equals
in class Polymorphic
o
- An object to test for equality with this node
public boolean isValid()
Polymorphic
isValid
in class Polymorphic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |