|
||||||||||
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.AbstractParticle
com.saxonica.schema.Compositor
com.saxonica.schema.ModelGroupDefinition
A Model Group Definition: a schema component corresponding to a top-level (named) xs:group element in a schema document.
Field Summary |
Fields inherited from class com.saxonica.schema.Compositor |
contentModel |
Fields inherited from class com.saxonica.schema.AbstractParticle |
UNBOUNDED |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
ModelGroupDefinition(PreparedSchema schema,
javax.xml.transform.SourceLocator locator)
Creates a new Group definition |
Method Summary | |
Compositor |
getContentModelGroup()
Returns the ContentModelGroup for this group Only used for a |
int |
getFingerprint()
|
java.lang.String |
getName()
Returns the name of this Group. |
boolean |
isEmptiable()
Determine if empty content is allowed |
boolean |
isSameGroup(ModelGroupDefinition other)
Test whether this is the same type as another type. |
void |
lookForCycles(PreparedSchema schema,
java.util.Stack references)
This method is called to look for cycles. |
void |
setFingerprint(int fingerprint)
|
void |
setName(java.lang.String name)
Set the name of the group |
void |
setRedefinedModelGroupDefinition(ModelGroupDefinition other)
Set the model group definition that this one redefines. |
boolean |
validate(PreparedSchema schema)
Checks the validity of this Schema definition. |
Methods inherited from class com.saxonica.schema.Compositor |
addParticle, checkElements, compile, containsAll, fixup, getElementParticleCardinality, getElementParticleType, getTerm, isEmpty, iterateParticles, rewrite |
Methods inherited from class com.saxonica.schema.AbstractParticle |
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs |
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 net.sf.saxon.type.SchemaComponent |
getValidationStatus |
Constructor Detail |
public ModelGroupDefinition(PreparedSchema schema, javax.xml.transform.SourceLocator locator)
schema
- the XML Schema to which this Group
belongsMethod Detail |
public void setName(java.lang.String name)
public void setRedefinedModelGroupDefinition(ModelGroupDefinition other)
public Compositor getContentModelGroup()
public int getFingerprint()
public void setFingerprint(int fingerprint)
public java.lang.String getName()
public boolean isEmptiable() throws UnresolvedReferenceException
UnresolvedReferenceException
public void lookForCycles(PreparedSchema schema, java.util.Stack references) throws SchemaException, UnresolvedReferenceException
lookForCycles
in interface UserSchemaComponent
lookForCycles
in class Compositor
schema
- references
- A list of objects that contain direct or indirect references
to this object, and that must therefore not be referred to from this object.
SchemaException
UnresolvedReferenceException
public boolean validate(PreparedSchema schema) throws SchemaException, ValidationException
validate
in interface UserSchemaComponent
validate
in class Compositor
SchemaException
ValidationException
public boolean isSameGroup(ModelGroupDefinition other)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |