|
|||||||
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.AttributeGroupReference
public final class AttributeGroupReference
An XML Schema Attribute Group Reference, corresponding to an xs:attributeGroup element with a 'ref' attribute.
Field Summary |
---|
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
---|
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
---|---|
AttributeGroupReference(SchemaAwareConfiguration config,
int fingerprint)
Creates a new AttributeGroup reference |
Method Summary | |
---|---|
void |
elaborate()
Elaborate the schema component: after reloading a serialized schema component model, this expands the component with derived information needed during validation episodes. |
boolean |
fixup(SchemaCompiler compiler)
Fix up references to other elements in the schema. |
AttributeWildcard |
getAttributeWildcard(SchemaCompiler compiler)
Returns the attribute wildcard in the referenced attribute group, if any. |
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()
Resolves the attribute group reference Note this method doesn't bind irrevocably to the target attribute group declaration, because this may change following a redefine. |
boolean |
isResolved()
Determine whether this reference has been resolved |
void |
lookForCycles(Stack references,
SchemaCompiler compiler)
Check for cycles in the attribute group. |
void |
setFingerprint(int fingerprint)
Set the fingerprint of the target of this reference |
void |
tryToResolve(SchemaCompiler compiler)
Attempt to resolve this reference using the groups defined in a given schema. |
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Schema component. |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, 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 |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
---|
getValidationStatus |
Constructor Detail |
---|
public AttributeGroupReference(SchemaAwareConfiguration config, int fingerprint)
config
- the Configuration that this AttributeGroup belongs to.fingerprint
- The NamePool fingerprint of the name of the
attribute group (that is, the name contained in the 'ref' attribute)Method Detail |
---|
public boolean isResolved()
isResolved
in interface ComponentReference
public int getSymbolSpace()
getSymbolSpace
in interface ComponentReference
public void setFingerprint(int fingerprint)
public int getFingerprint()
getFingerprint
in interface ComponentReference
public AttributeWildcard getAttributeWildcard(SchemaCompiler compiler) throws UnresolvedReferenceException
compiler
- May be null if used at validation time.
UnresolvedReferenceException
public boolean fixup(SchemaCompiler compiler) throws SchemaException
fixup
in interface UserSchemaComponent
fixup
in class SchemaStructure
compiler
-
SchemaException
public boolean validate(SchemaCompiler compiler) throws SchemaException
validate
in interface UserSchemaComponent
compiler
-
SchemaException
- if the ErrorListener decides that an error is fatal.public void lookForCycles(Stack references, SchemaCompiler compiler) throws SchemaException
lookForCycles
in interface UserSchemaComponent
lookForCycles
in class SchemaStructure
references
- A list of attribute groups that reference this one,
directly or indirectly.compiler
-
SchemaException
- if a circularity is detected.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 SchemaComponent getTarget()
getTarget
in interface ComponentReference
UnresolvedReferenceException
- if the reference has not been resolved. Note that
this is an unchecked exception.public void elaborate() throws SchemaException
elaborate
in interface UserSchemaComponent
elaborate
in class SchemaStructure
SchemaException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |