|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.AbstractBlankNode org.jrdf.graph.local.BlankNodeImpl
public class BlankNodeImpl
RDF blank node. Note that blank nodes are deliberately devoid of external indentifying attributes.
Blank nodes, can either be subjects or objects.
Constructor Summary | |
---|---|
BlankNodeImpl(String newUid,
Long newId)
The constructor for this node. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
While the internal structure of a BlankNode is not defined equality between two nodes should be able to be determined. |
Long |
getId()
Retrieves an internal identifier for this node. |
String |
getUID()
Retrieves a Globally Unique Identifier for this node. |
int |
hashCode()
Returns a hash-code value for this BlankNode. |
String |
toString()
Returns the String value of this BlankNode as: uid#id (eg. 29fbf7ba364f1425dda058737d764603#69) |
static BlankNode |
valueOf(String nodeString)
Parses a String in the format of: uid#id (eg. 29fbf7ba364f1425dda058737d764603#69) and creates a new BlankNodeImpl from it. |
Methods inherited from class org.jrdf.graph.AbstractBlankNode |
---|
accept, isBlankNode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jrdf.graph.TypedNodeVisitable |
---|
accept |
Constructor Detail |
---|
public BlankNodeImpl(String newUid, Long newId)
newUid
- String Globally Unique Identifier for external communication.newId
- The id to be used for this node.Method Detail |
---|
public Long getId()
getId
in interface LocalizedNode
public String getUID()
getUID
in interface GlobalizedBlankNode
public int hashCode()
hashCode
in interface BlankNode
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface BlankNode
equals
in class Object
obj
- the reference object with which to compare.
public String toString()
toString
in class Object
public static BlankNode valueOf(String nodeString) throws IllegalArgumentException
nodeString
- String previously returned by toString()
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |