public abstract class AbstractT2ReferenceGenerator extends Object implements T2ReferenceGenerator
T2ReferenceGenerator
s.Constructor and Description |
---|
AbstractT2ReferenceGenerator() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getNextLocalPart()
Generate a new local part for a new
reference . |
T2Reference |
nextErrorDocumentReference(int depth,
ReferenceContext context)
Create a new and otherwise unused T2Reference to an ErrorDocument.
|
T2Reference |
nextListReference(boolean containsErrors,
int listDepth,
ReferenceContext context)
Create a new and otherwise unused T2Reference to an IdentifiedList.
|
T2Reference |
nextReferenceSetReference(ReferenceContext context)
Create a new and otherwise unused T2Reference to a ReferenceSet.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespace
public T2Reference nextReferenceSetReference(ReferenceContext context)
T2ReferenceGenerator
nextReferenceSetReference
in interface T2ReferenceGenerator
protected abstract String getNextLocalPart()
reference
. The
local part should be unique within this
namespace
.public T2Reference nextListReference(boolean containsErrors, int listDepth, ReferenceContext context)
T2ReferenceGenerator
nextListReference
in interface T2ReferenceGenerator
containsErrors
- whether the list this reference is generated for contains
t2references with their containsErrors property set to true.
Returns true if any reference in the list is or
contains an error.listDepth
- depth of the list to which this identifier will be appliedpublic T2Reference nextErrorDocumentReference(int depth, ReferenceContext context)
T2ReferenceGenerator
nextErrorDocumentReference
in interface T2ReferenceGenerator
depth
- the depth of the error document to which this identifier will
referCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.