|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RDFNode
An RDF Resource or an RDF Literal.
RDFNode
represents the methods which RDF Resources and RDF
Literals have in common.
Chris added the _as_ method to allow RDFNodes to participate in polymorphic conversions.
Method Summary | |
---|---|
RDFNode |
as(Class view)
RDFNodes can be converted to different implementation types. |
boolean |
canAs(Class view)
return true iff this RDFNode can be viewed as a _view_. |
RDFNode |
inModel(Model m)
returns a .equals() version of this node, except that its in the model m. |
String |
toString()
Return a String representation of the node. |
Object |
visitWith(RDFVisitor rv)
Apply the appropriate method of the visitor to this node's content and return the result. |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
String toString()
toString
in class Object
RDFNode as(Class view)
view
interface. The
resulting RDFNode should be an instance of view
and should
have any internal invariants as specified.
If the RDFNode cannot be converted, an exception is thrown.
boolean canAs(Class view)
RDFNode inModel(Model m)
m
- a model to move the node to
Object visitWith(RDFVisitor rv)
rv
- an RDFVisitor with a method for URI/blank/literal nodes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |