public class TypeReference extends SchemaStructure implements ComponentReference
Constructor and Description |
---|
TypeReference(int fingerprint,
EnterpriseConfiguration config,
javax.xml.transform.SourceLocator locator)
Creates a new Type reference
|
Modifier and Type | Method and Description |
---|---|
int |
getSymbolSpace()
Get the symbol space of the target of this reference
|
SchemaComponent |
getTarget()
Returns the type that this type reference is a reference to
|
StructuredQName |
getTargetComponentName()
Get the name of the target of this reference
|
int |
getTargetFingerprint() |
boolean |
isAnonymousType()
Test whether this is a reference to an anonymous type
|
boolean |
isDangling()
Ask whether this is known to be a dangling reference
|
boolean |
isResolved()
Determine whether this reference has been resolved
|
void |
setTarget(SchemaType target) |
void |
tryToResolve(SchemaCompiler compiler,
boolean fatal)
Try to resolve the reference if possible, relative to components present 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 TypeReference(int fingerprint, EnterpriseConfiguration config, javax.xml.transform.SourceLocator locator)
fingerprint
- the Name Pool fingerprint of the name of the type being referencedconfig
- identifies the XML Schema in which this type reference appears.locator
- the SourceLocator identifying the location of the reference. May be null if the reference
is in a built-in typepublic boolean isResolved()
isResolved
in interface ComponentReference
public void setTarget(SchemaType target)
public int getTargetFingerprint()
public StructuredQName getTargetComponentName()
ComponentReference
getTargetComponentName
in interface ComponentReference
public boolean isDangling()
isDangling
in interface ComponentReference
public int getSymbolSpace()
getSymbolSpace
in interface ComponentReference
public boolean isAnonymousType()
public SchemaComponent getTarget()
getTarget
in interface ComponentReference
public void tryToResolve(SchemaCompiler compiler, boolean fatal) throws SchemaException
tryToResolve
in interface ComponentReference
compiler
- The compiler being used to compile the referring component.fatal
- true if a failure to resolve the reference is to be treated as fatalSchemaException
- if the reference cannot be resolved or repaired.Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.