public class TypeReference extends SchemaStructure implements ComponentReference
| Constructor and Description |
|---|
TypeReference(int fingerprint,
EnterpriseConfiguration config,
SourceLocator locator)
Creates a new Type reference
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFingerprint()
Get the fingerprint of the target of this reference
|
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
|
boolean |
isAnonymousType()
Test whether this is a reference to an anonymous type
|
boolean |
isResolved()
Determine whether this reference has been resolved
|
void |
setTarget(SchemaType target) |
void |
tryToResolve(SchemaCompiler compiler)
Attempt to resolved this reference using the groups defined in a given schema.
|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, lookForCycles, makeXPathExpressionPropertyRecord, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationgetColumnNumber, getLineNumber, getPublicId, getSystemIdpublic TypeReference(int fingerprint,
EnterpriseConfiguration config,
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. 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 boolean isResolved()
isResolved in interface ComponentReferencepublic void setTarget(SchemaType target)
public int getFingerprint()
ComponentReferencegetFingerprint in interface ComponentReferencepublic int getSymbolSpace()
getSymbolSpace in interface ComponentReferencepublic boolean isAnonymousType()
public SchemaComponent getTarget() throws UnresolvedReferenceException
getTarget in interface ComponentReferenceUnresolvedReferenceException - if the reference has not been resolved. Note that
this is an unchecked exception.public void tryToResolve(SchemaCompiler compiler)
tryToResolve in interface ComponentReferencecompiler - The compiler being used to compile the referring component.
This is assumed to know about the schema containing the candidate target components for the reference. If
null, the schema containing the reference is used.Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.