org.jscience.ml.om.util
Class UIDGenerator

java.lang.Object
  extended by org.jscience.ml.om.util.UIDGenerator
All Implemented Interfaces:
IIDGenerator

public class UIDGenerator
extends java.lang.Object
implements IIDGenerator

The UIDGenerator implements the IIDGenerator interface by using java.rmi.server.UID, which creates pretty exact unique IDs.

Since:
1.0

Constructor Summary
UIDGenerator()
           
 
Method Summary
 java.lang.String generateUID()
          Creates a unique ID that can be used to identify and link several schema elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIDGenerator

public UIDGenerator()
Method Detail

generateUID

public java.lang.String generateUID()
Creates a unique ID that can be used to identify and link several schema elements.
All elements inside a XML file need to have a unique ID.

Specified by:
generateUID in interface IIDGenerator
Returns:
Returns a unique ID that can be used to identify a schema element and to link several schema elements