|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.schema.SchemaStructure com.saxonica.schema.TypeReference
public class TypeReference
A reference to a simple or complex type
Constructor Summary | |
---|---|
TypeReference(int fingerprint,
SchemaAwareConfiguration config,
SourceLocator locator)
Creates a new Type reference |
Method Summary | |
---|---|
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 |
isResolved()
Determine whether this reference has been resolved |
void |
lookForCycles(PreparedSchema schema,
Stack references,
ErrorListener errorListener)
This method is called to look for cycles. |
void |
setTarget(SchemaType target)
|
void |
tryToResolve(SchemaCompiler compiler)
Attempt to resolved this reference using the groups defined in a given schema. |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.saxonica.schema.ComponentReference |
---|
getConfiguration |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public TypeReference(int fingerprint, SchemaAwareConfiguration 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 typeMethod Detail |
---|
public boolean isResolved()
isResolved
in interface ComponentReference
public void setTarget(SchemaType target)
public int getFingerprint()
ComponentReference
getFingerprint
in interface ComponentReference
public int getSymbolSpace()
getSymbolSpace
in interface ComponentReference
public SchemaComponent getTarget() throws UnresolvedReferenceException
getTarget
in interface ComponentReference
UnresolvedReferenceException
- if the reference has not been resolved. Note that
this is an unchecked exception.public void tryToResolve(SchemaCompiler compiler)
tryToResolve
in interface ComponentReference
compiler
- 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.public void lookForCycles(PreparedSchema schema, Stack references, ErrorListener errorListener) throws SchemaException
schema
- references
- A stack of objects that contain direct or indirect references
to this object, and that must therefore not be referred to from this object.errorListener
-
SchemaException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |