public abstract class NodeID extends java.lang.Object implements java.lang.Comparable<NodeID>, java.io.Serializable
Constructor and Description |
---|
NodeID() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getID()
Gets the string representation of the node ID.
|
static java.lang.String |
getIRIFromNodeID(java.lang.String nodeID)
Returns an absolute IRI from a nodeID attribute.
|
static NodeID |
getNodeID(java.lang.String id)
Gets a NodeID with a specific identifier string
|
static boolean |
isAnonymousNodeID(java.lang.String iri) |
static boolean |
isAnonymousNodeIRI(java.lang.String uri)
Tests whether supplied IRI was generated by this parser in order to label
an anonymous node.
|
static java.lang.String |
nextAnonymousIRI()
Generates next anonymous IRI.
|
static java.lang.String |
nodeString(int id) |
public static java.lang.String nodeString(int id)
id
- public static java.lang.String getIRIFromNodeID(java.lang.String nodeID)
nodeID
- public static java.lang.String nextAnonymousIRI()
public static boolean isAnonymousNodeIRI(java.lang.String uri)
uri
- the IRItrue
if the IRI was generated by this parser to
label an anonymous nodepublic static boolean isAnonymousNodeID(java.lang.String iri)
iri
- public abstract java.lang.String getID()
public static NodeID getNodeID(java.lang.String id)
id
- The String that identifies the node. If the String doesn't
start with "_:" then this will be concatenated to the front of
the specified id String; if the string is empty or null, an
autogenerated id will be used.