|
|||||||||
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.SimpleComponentReference
public class SimpleComponentReference
A reference to a named schema group within the content model of a complex type
Field Summary | |
---|---|
protected int |
nameCode
The name of the SchemaComponent referenced |
protected int |
symbolSpace
The symbol space representing the kind of schema component that is referenced |
protected SchemaComponent |
target
The corresponding SchemaComponent. |
Constructor Summary | |
---|---|
protected |
SimpleComponentReference()
Default constructor for use by subclasses |
|
SimpleComponentReference(int symbolSpace,
int fingerprint,
EnterpriseConfiguration config)
Creates a new SimpleComponentReference definition |
Method Summary | |
---|---|
int |
getFingerprint()
Get the fingerprint of the target of this reference |
int |
getNameCode()
|
int |
getSymbolSpace()
Get the symbol space of the target of this reference |
SchemaComponent |
getTarget()
Returns the schema component that this is a reference to |
boolean |
isResolved()
Determine whether this reference has been resolved |
void |
setNameCode(int nameCode)
|
void |
setTarget(SchemaComponent target)
Set the target component |
void |
tryToResolve(SchemaCompiler compiler)
Attempt to resolve this reference using the components defined in a given schema. |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 |
Field Detail |
---|
protected int nameCode
protected SchemaComponent target
protected int symbolSpace
Constructor Detail |
---|
protected SimpleComponentReference()
public SimpleComponentReference(int symbolSpace, int fingerprint, EnterpriseConfiguration config)
config
- the configuration to which this component
belongsMethod Detail |
---|
public boolean isResolved()
isResolved
in interface ComponentReference
public void setNameCode(int nameCode)
public int getFingerprint()
ComponentReference
getFingerprint
in interface ComponentReference
public int getNameCode()
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 setTarget(SchemaComponent target)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |