|
|||||||
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.ModelGroup 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 interface net.sf.saxon.type.SchemaComponent |
---|
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
---|---|
ModelGroupDefinition(SchemaAwareConfiguration config,
SourceLocator locator)
Creates a new Model Group definition |
Method Summary | |
---|---|
String |
getCompositorName()
Get the name of the compositor used in this model group |
int |
getFingerprint()
|
String |
getName()
Returns the local part of the name of this named Group. |
int |
getNameCode()
|
String |
getTargetNamespace()
Returns the namespace URI of the name of this named 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 group as another group. |
void |
lookForCycles(Stack references,
SchemaCompiler compiler)
This method is called to look for cycles. |
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component |
void |
setNameCode(int nameCode)
|
void |
setRedefinedModelGroupDefinition(ModelGroupDefinition other)
Set the model group definition that this one redefines. |
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Model Group Definition. |
Methods inherited from class com.saxonica.schema.ModelGroup |
---|
addParticle, compile, containsAll, fixup, gatherAllPermittedElements, getContentModelSize, getElementParticleCardinality, getElementParticleType, getListOfParticles, getSimplifiedContentModel, getTerm, isEmpty, isPointless, iterateParticles, setContentModel |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
elaborate, 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.UserSchemaComponent |
---|
elaborate |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
---|
getValidationStatus |
Constructor Detail |
---|
public ModelGroupDefinition(SchemaAwareConfiguration config, SourceLocator locator)
config
- the Configuration to which this Model Group definition belongslocator
- the source location of the model group definitionMethod Detail |
---|
public void setRedefinedModelGroupDefinition(ModelGroupDefinition other)
other
- the model group that this one redefinespublic int getNameCode()
public int getFingerprint()
public void setNameCode(int nameCode)
public String getName()
public String getTargetNamespace()
public boolean isEmptiable() throws UnresolvedReferenceException
isEmptiable
in class ModelGroup
UnresolvedReferenceException
public boolean isPointless(Particle container)
container
- the particle that contains this model group definition
public void lookForCycles(Stack references, SchemaCompiler compiler) throws SchemaException, UnresolvedReferenceException
lookForCycles
in interface UserSchemaComponent
lookForCycles
in class ModelGroup
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
- used for error reporting
SchemaException
UnresolvedReferenceException
public boolean validate(SchemaCompiler compiler) throws SchemaException
validate
in interface UserSchemaComponent
validate
in class ModelGroup
SchemaException
public boolean isSameGroup(ModelGroupDefinition other)
other
- the other group
public void serialize(SchemaModelSerializer serializer) throws XPathException
serialize
in interface SerializableSchemaComponent
serialize
in class ModelGroup
serializer
- used to receive the serialized output
XPathException
public String getCompositorName()
ModelGroup
getCompositorName
in class ModelGroup
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |