ubiware.util
Class IDGenerator

java.lang.Object
  extended by ubiware.util.Counter
      extended by ubiware.util.UniqueInstanceGenerator
          extended by ubiware.util.IDGenerator

public class IDGenerator
extends UniqueInstanceGenerator

This class implements an ID generator, every time getNewID is called, a new uninque ID is generated. The id's are in the "http://www.ubiware.jyu.fi/id#" namespace

Since:
18.3.2010
Author:
Michael Cochez for UBIWARE project

Field Summary
static java.net.URI ID_NS_URI
          The URI used to prefix all ID's.
 
Constructor Summary
IDGenerator(java.lang.String prefixForID)
          Create an IDGenerator which uses the given prefix.
 
Method Summary
 
Methods inherited from class ubiware.util.UniqueInstanceGenerator
getNewID, getNewResource
 
Methods inherited from class ubiware.util.Counter
getNextNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_NS_URI

public static final java.net.URI ID_NS_URI
The URI used to prefix all ID's.

Constructor Detail

IDGenerator

public IDGenerator(java.lang.String prefixForID)
Create an IDGenerator which uses the given prefix.

Parameters:
prefixForID - the prefix for the IDs