org.semanticweb.owlapi.model
Class NodeID

java.lang.Object
  extended by org.semanticweb.owlapi.model.NodeID
All Implemented Interfaces:
java.lang.Comparable<NodeID>
Direct Known Subclasses:
NodeID.NodeIDImpl

public abstract class NodeID
extends java.lang.Object
implements java.lang.Comparable<NodeID>

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 15-Jan-2009

Represents the Node ID for anonymous individuals


Nested Class Summary
static class NodeID.NodeIDImpl
           
 
Constructor Summary
NodeID()
           
 
Method Summary
abstract  java.lang.String getID()
          Gets the string representation of the node ID.
static NodeID getNodeID()
          Creates a NodeID with an auto-generated identified.
static NodeID getNodeID(java.lang.String id)
          Gets a NodeID with a specific identifier string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

NodeID

public NodeID()
Method Detail

getID

public abstract java.lang.String getID()
Gets the string representation of the node ID. This will begin with _:

Returns:
The string representation of the node ID.

getNodeID

public static NodeID getNodeID(java.lang.String id)
Gets a NodeID with a specific identifier string

Parameters:
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
Returns:
A NodeID

getNodeID

public static NodeID getNodeID()
Creates a NodeID with an auto-generated identified. A new identifier will be generated each time this method is called.

Returns:
A new NodeID