public class UUIDT2ReferenceGenerator extends AbstractT2ReferenceGenerator implements T2ReferenceGenerator
SimpleT2ReferenceGenerator
, but IDs will be globally unique.Constructor and Description |
---|
UUIDT2ReferenceGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
getNamespace()
All T2Reference objects will have this namespace
|
protected String |
getNextLocalPart()
Generate a new local part for a new
reference . |
void |
setNamespace(String newNamespace)
Set the namespace for identifiers generated by this class as a string
|
nextErrorDocumentReference, nextListReference, nextReferenceSetReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextErrorDocumentReference, nextListReference, nextReferenceSetReference
public void setNamespace(String newNamespace)
newNamespace
- the namespace to usepublic String getNamespace()
T2ReferenceGenerator
getNamespace
in interface T2ReferenceGenerator
protected String getNextLocalPart()
AbstractT2ReferenceGenerator
reference
. The
local part should be unique within this
namespace
.getNextLocalPart
in class AbstractT2ReferenceGenerator
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.