|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.saxonica.schema.SchemaElement
|
+--com.saxonica.schema.AbstractParticle
|
+--com.saxonica.schema.Compositor
|
+--com.saxonica.schema.Group
An XML Schema Group
| Field Summary |
| Fields inherited from class com.saxonica.schema.Compositor |
contentModel |
| Fields inherited from class com.saxonica.schema.AbstractParticle |
UNBOUNDED |
| Fields inherited from class com.saxonica.schema.SchemaElement |
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, COMPOSITOR, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD_ATTRIBUTE, WILDCARD_ELEMENT |
| Constructor Summary | |
Group(Schema schema,
javax.xml.transform.SourceLocator locator)
Creates a new Group definition |
|
| Method Summary | |
boolean |
fixup(Schema schema)
Fixup the reference to the referenced group |
Compositor |
getContentModelGroup()
Returns the ContentModelGroup for this group Only used for a |
int |
getFingerprint()
|
java.lang.String |
getName()
Returns the name of this Group. |
Group |
getReference()
Returns the group that this group object is a reference to |
short |
getStructureType()
Returns the type of this Schema Structure |
boolean |
isEmptiable()
Determine if empty content is allowed |
boolean |
isReference()
Returns true if this model group definition simply references another model group Definition |
java.util.Iterator |
iterateParticles()
Returns an enumeration of all the Particles of this ContentModelGroup |
void |
lookForCycles(Schema 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 |
setReference(boolean isRef)
Sets the reference for this Group definition |
void |
setSchema(Schema schema)
Sets the Schema that contains this group. |
boolean |
validate(javax.xml.transform.ErrorListener errorListener)
Checks the validity of this Schema defintion. |
| Methods inherited from class com.saxonica.schema.Compositor |
addParticle, checkElements, compile, containsAll, getId, getLocalElementDeclaration, isEmpty, isVoidValidationContext, setId, validate |
| Methods inherited from class com.saxonica.schema.AbstractParticle |
getMaxOccurs, getMinOccurs, getTerm, setMaxOccurs, setMinOccurs |
| Methods inherited from class com.saxonica.schema.SchemaElement |
getColumnNumber, getLineNumber, getPublicId, getSystemId, setLocator |
| 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.SchemaComponent |
validate |
| Constructor Detail |
public Group(Schema schema,
javax.xml.transform.SourceLocator locator)
schema - the XML Schema to which this Group
belongs| Method Detail |
public void setName(java.lang.String name)
public java.util.Iterator iterateParticles()
iterateParticles in class Compositorpublic Compositor getContentModelGroup()
public int getFingerprint()
public void setFingerprint(int fingerprint)
public java.lang.String getName()
public boolean isReference()
public void setReference(boolean isRef)
isRef - true if this group is a referencepublic short getStructureType()
getStructureType in class Compositorpublic boolean isEmptiable()
isEmptiable in interface Particle
public boolean fixup(Schema schema)
throws SchemaException
fixup in interface SchemaComponentfixup in class Compositorschema - The schema is used for reporting errors
SchemaException
public void lookForCycles(Schema schema,
java.util.Stack references)
throws SchemaException
lookForCycles in interface CircularityCheckerlookForCycles in class Compositorreferences - A list of objects that contain direct or indirect references
to this object, and that must therefore not be referred to from this object.
SchemaExceptionpublic Group getReference()
public boolean validate(javax.xml.transform.ErrorListener errorListener)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic void setSchema(Schema schema)
schema - the Schema that contains this group.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||