|
|||||||
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
public class 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.AbstractParticle |
---|
UNBOUNDED |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
---|
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Fields inherited from interface com.saxonica.schema.SerializableSchemaComponent |
---|
ALL_COMPOSITOR, ATOMIC_TYPE, ATTRIBUTE_DECL, ATTRIBUTE_GROUP, ATTRIBUTE_GROUP_REF, ATTRIBUTE_USE, ATTRIBUTE_WILDCARD, CHOICE_COMPOSITOR, COMPLEX_TYPE, ELEMENT_DECL, ELEMENT_PARTICLE, ELEMENT_WILDCARD, FACET, KEY, KEYREF, LIST_TYPE, MODEL_GROUP, MODEL_GROUP_REF, NOTATION, SEQUENCE_COMPOSITOR, UNION_TYPE, UNIQUE |
Constructor Summary | |
---|---|
ModelGroupDefinition(PreparedSchema schema,
SourceLocator locator)
Creates a new Group definition |
Method Summary | |
---|---|
int |
getComponentTypeCode()
Get a unique number identifying the type of component |
int |
getFingerprint()
|
String |
getName()
Returns the name of this Group. |
boolean |
isEmptiable()
Determine if empty content is allowed |
boolean |
isPointless(Particle container)
Test whether the compositor is pointless, as described in XML Schema Part 1 Schema Component Constraint: Particle Valid (Restriction) |
boolean |
isSameGroup(ModelGroupDefinition other)
Test whether this is the same type as another type. |
void |
lookForCycles(Stack references,
SchemaCompiler compiler)
This method is called to look for cycles. |
void |
serialize(SchemaSerializer serializer)
Serialize the schema component |
void |
setFingerprint(int fingerprint)
|
void |
setName(String name)
Set the name of the group |
void |
setRedefinedModelGroupDefinition(ModelGroupDefinition other)
Set the model group definition that this one redefines. |
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Schema definition. |
Methods inherited from class com.saxonica.schema.Compositor |
---|
addParticle, compile, containsAll, fixup, gatherAllPermittedElements, getContentModelSize, getElementParticleCardinality, getElementParticleType, getListOfParticles, getSimplifiedContentModel, getTerm, isEmpty, iterateParticles, setContentModel |
Methods inherited from class com.saxonica.schema.AbstractParticle |
---|
computeParticleCardinality, getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs |
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 net.sf.saxon.type.SchemaComponent |
---|
getValidationStatus |
Constructor Detail |
---|
public ModelGroupDefinition(PreparedSchema schema, SourceLocator locator)
schema
- the XML Schema to which this Group
belongsMethod Detail |
---|
public void setName(String name)
public void setRedefinedModelGroupDefinition(ModelGroupDefinition other)
public int getFingerprint()
public void setFingerprint(int fingerprint)
public String getName()
public boolean isEmptiable() throws UnresolvedReferenceException
UnresolvedReferenceException
public boolean isPointless(Particle container)
isPointless
in interface Particle
isPointless
in class Compositor
public void lookForCycles(Stack references, SchemaCompiler compiler) throws SchemaException, UnresolvedReferenceException
lookForCycles
in interface UserSchemaComponent
lookForCycles
in class Compositor
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.compiler
-
SchemaException
UnresolvedReferenceException
public boolean validate(SchemaCompiler compiler) throws SchemaException, ValidationException
validate
in interface UserSchemaComponent
validate
in class Compositor
SchemaException
ValidationException
public boolean isSameGroup(ModelGroupDefinition other)
public void serialize(SchemaSerializer serializer) throws IOException
IOException
public int getComponentTypeCode()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |