Package com.saxonica.ee.schema
Class SequenceModelGroup
java.lang.Object
com.saxonica.ee.schema.SchemaStructure
com.saxonica.ee.schema.ModelGroup
com.saxonica.ee.schema.SequenceModelGroup
- All Implemented Interfaces:
Term,UserSchemaComponent,SourceLocator,Location,SchemaComponent,Locator
A SequenceCompositor represents an xs:sequence element in the schema
-
Field Summary
Fields inherited from class com.saxonica.ee.schema.ModelGroup
contentModel, simplifiedContentModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the name of this compositorbooleanDetermine if empty content is allowedbooleanisPointless(ModelGroup container) Test whether the compositor is pointless, as described in XML Schema Part 1 Schema Component Constraint: Particle Valid (Restriction)booleanvalidate(SchemaCompiler compiler) Checks the validity of this Compositor definition.Methods inherited from class com.saxonica.ee.schema.ModelGroup
addParticle, checkElements, compile, containsAll, containsElementWildcard, fixup, gatherAllPermittedElements, getComponentAsFunction, getContentModelSize, getElementParticleCardinality, getElementParticleType, getParticles, getSimplifiedContentModel, getTerm, isEmpty, lookForCycles, markVulnerableSubParticles, serialize, setContentModelMethods inherited from class com.saxonica.ee.schema.SchemaStructure
elaborate, getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, isValidationNeeded, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.type.SchemaComponent
getRedefinitionLevel, getValidationStatusMethods inherited from interface com.saxonica.ee.schema.UserSchemaComponent
elaborate
-
Constructor Details
-
SequenceModelGroup
public SequenceModelGroup()
-
-
Method Details
-
isEmptiable
Determine if empty content is allowed- Specified by:
isEmptiablein classModelGroup- Returns:
- true if the content model of the model group allows empty content
- Throws:
MissingComponentException- if the schema contains unresolved references to required components
-
isPointless
Test whether the compositor is pointless, as described in XML Schema Part 1 Schema Component Constraint: Particle Valid (Restriction)- Overrides:
isPointlessin classModelGroup- Parameters:
container- not used- Returns:
- true if the particle is pointless (which effectively means it can't match anything)
-
validate
Checks the validity of this Compositor definition.- Specified by:
validatein interfaceUserSchemaComponent- Overrides:
validatein classModelGroup- Parameters:
compiler- the schema compiler- Returns:
- true when this Schema definition is valid, otherwise false.
- Throws:
SchemaException- when the error listener decides an error is fatal
-
getCompositorName
Get the name of this compositor- Specified by:
getCompositorNamein classModelGroup- Returns:
- one of "sequence", "choice", or "all"
-