|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.saxonica.schema.SchemaStructure
com.saxonica.schema.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(PreparedSchema schema,
int fingerprint)
Creates a new AttributeGroup reference |
|
| Method Summary | |
boolean |
fixup(PreparedSchema schema)
Fix up references to other elements in the schema. |
AttributeWildcard |
getAttributeWildcard(PreparedSchema schema)
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(PreparedSchema schema,
java.util.Stack references)
Check for cycles in the attribute group. |
void |
setFingerprint(int fingerprint)
Set the fingerprint of the target of this reference |
void |
tryToResolve(PreparedSchema schema)
Attempt to resolve this reference using the groups defined in a given schema. |
boolean |
validate(PreparedSchema schema)
Checks the validity of this Schema component. |
| Methods inherited from class com.saxonica.schema.SchemaStructure |
getColumnNumber, getFixupStatus, getLineNumber, getPublicId, getSchema, getSystemId, getValidationStatus, setFixupStatus, setLineNumber, setLocator, setSchema, 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 |
getSchema |
| 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(PreparedSchema schema,
int fingerprint)
schema - the Schema 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 ComponentReferencepublic int getSymbolSpace()
getSymbolSpace in interface ComponentReferencepublic void setFingerprint(int fingerprint)
public int getFingerprint()
getFingerprint in interface ComponentReference
public AttributeWildcard getAttributeWildcard(PreparedSchema schema)
throws UnresolvedReferenceException
schema -
UnresolvedReferenceException
public boolean fixup(PreparedSchema schema)
throws SchemaException
fixup in interface UserSchemaComponentschema - The schema.
SchemaException
public boolean validate(PreparedSchema schema)
throws SchemaException
validate in interface UserSchemaComponentschema - if this is not null, any errors that are detected should
be reported using the error() method of this schema.
SchemaException - if the ErrorListener decides that an error is fatal.
public void lookForCycles(PreparedSchema schema,
java.util.Stack references)
throws SchemaException
lookForCycles in interface UserSchemaComponentlookForCycles in class SchemaStructureschema - references - A list of attribute groups that reference this one,
directly or indirectly.
SchemaException - if a circularity is detected.public void tryToResolve(PreparedSchema schema)
tryToResolve in interface ComponentReferenceschema - 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 ComponentReferenceUnresolvedReferenceException - if the reference has not been resolved. Note that
this is an unchecked exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||