com.saxonica.schema
Class AllModelGroup
java.lang.Object
com.saxonica.schema.SchemaStructure
com.saxonica.schema.ModelGroup
com.saxonica.schema.AllModelGroup
- All Implemented Interfaces:
- Term, UserSchemaComponent, Serializable, SourceLocator, SchemaComponent
public class AllModelGroup
- extends ModelGroup
An AllModelGroup represents an xs:all element in the schema
- See Also:
- Serialized Form
Method Summary |
boolean |
containsAll(boolean simplified)
Determine if the content model uses xs:all. |
String |
getCompositorName()
Get the name of this compositor |
boolean |
isEmptiable()
Determine if empty content is allowed |
boolean |
isPointless(ModelGroup container)
Test whether the compositor is pointless, as described in XML Schema Part 1
Schema Component Constraint: Particle Valid (Restriction) |
Methods inherited from class com.saxonica.schema.ModelGroup |
addParticle, compile, fixup, gatherAllPermittedElements, getContentModelSize, getElementParticleCardinality, getElementParticleType, getListOfParticles, getSimplifiedContentModel, getTerm, isEmpty, iterateParticles, lookForCycles, serialize, setContentModel, validate |
Methods inherited from class com.saxonica.schema.SchemaStructure |
elaborate, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, setConfiguration, setFixupStatus, setLineNumber, setLocator, setSystemId, setValidationStatus |
AllModelGroup
public AllModelGroup()
containsAll
public boolean containsAll(boolean simplified)
- Determine if the content model uses xs:all.
- Overrides:
containsAll
in class ModelGroup
- Parameters:
simplified
- set to false if we want to look at the original unsimplified
content model, to true if we want the model after removing pointless particles
- Returns:
- true (always)
isEmptiable
public boolean isEmptiable()
throws UnresolvedReferenceException
- Determine if empty content is allowed
- Specified by:
isEmptiable
in class ModelGroup
- Returns:
- true if this content model permits empty content
- Throws:
UnresolvedReferenceException
isPointless
public boolean isPointless(ModelGroup container)
- Test whether the compositor is pointless, as described in XML Schema Part 1
Schema Component Constraint: Particle Valid (Restriction)
- Overrides:
isPointless
in class ModelGroup
- Parameters:
container
- not used
- Returns:
- true if the particle is pointless (which effectively means it can't match anything)
getCompositorName
public String getCompositorName()
- Get the name of this compositor
- Specified by:
getCompositorName
in class ModelGroup
- Returns:
- one of "sequence", "choice", or "all"
Copyright (C) Michael H. Kay. All rights reserved.