public class IdentityConstraintReference extends SchemaStructure implements ComponentReference
Constructor and Description |
---|
IdentityConstraintReference()
Create a new uninitialized IdentityConstraint reference
(used during schema model loading)
|
IdentityConstraintReference(StructuredQName targetQName,
int kind,
EnterpriseConfiguration config,
javax.xml.transform.SourceLocator locator)
Creates a new IdentityConstraint reference
|
Modifier and Type | Method and Description |
---|---|
int |
getExpectedKindOfConstraint()
Get the expected kind of constraint
|
int |
getSymbolSpace()
Get the symbol space of the target of this reference
|
IdentityConstraint |
getTarget()
Returns the identity constraint that this type reference is a reference to
|
StructuredQName |
getTargetComponentName()
Get the name of the target of this reference
|
boolean |
isDangling()
Ask whether this is known to be a dangling reference
|
boolean |
isResolved()
Determine whether this reference has been resolved
|
void |
setTarget(IdentityConstraint target)
Set the target of this reference.
|
void |
tryToResolve(SchemaCompiler compiler,
boolean fatal)
Attempt to resolve this reference using the constraints defined in a given schema.
|
elaborate, fixup, getColumnNumber, getComponentAsFunction, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, isValidationNeeded, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
getColumnNumber, getLineNumber, getPublicId, getSystemId, saveLocation
public IdentityConstraintReference()
public IdentityConstraintReference(StructuredQName targetQName, int kind, EnterpriseConfiguration config, javax.xml.transform.SourceLocator locator)
targetQName
- the name of the constraint being referencedkind
- the name pool fingerprint of the kind of constraint being referenced, e.g. xs:uniqueconfig
- identifies the XML Schema in which this type reference appears. May be null if the reference
is in a built-in typelocator
- the SourceLocator identifying the location of the reference. May be null if the reference
is in a built-in typepublic int getExpectedKindOfConstraint()
StandardNames.XS_UNIQUE
, StandardNames.XS_KEY
, StandardNames.XS_KEYREF
public boolean isResolved()
isResolved
in interface ComponentReference
public boolean isDangling()
isDangling
in interface ComponentReference
public void setTarget(IdentityConstraint target)
target
- the target constraint (to which this is a reference)public StructuredQName getTargetComponentName()
getTargetComponentName
in interface ComponentReference
public int getSymbolSpace()
getSymbolSpace
in interface ComponentReference
public IdentityConstraint getTarget() throws MissingComponentException
getTarget
in interface ComponentReference
MissingComponentException
- if the reference has not been resolved.public void tryToResolve(SchemaCompiler compiler, boolean fatal)
tryToResolve
in interface ComponentReference
compiler
- The compiler being used to compile the referring component.fatal
- True if a failure to resolve should be treated as fatal, irrespective of any settings
in the SchemaCompilerCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.