com.saxonica.schema
Class AllCompositor
java.lang.Object
com.saxonica.schema.SchemaStructure
com.saxonica.schema.AbstractParticle
com.saxonica.schema.Compositor
com.saxonica.schema.AllCompositor
- All Implemented Interfaces:
- Particle, SerializableSchemaComponent, Term, UserSchemaComponent, Serializable, SourceLocator, SchemaComponent
public class AllCompositor
- extends Compositor
An AllCompositor represents an xs:all element in the schema
- See Also:
- Serialized Form
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 |
Method Summary |
int |
getComponentTypeCode()
Get a unique number identifying the type of component |
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) |
void |
serialize(SchemaSerializer serializer)
Serialize the schema component |
Methods inherited from class com.saxonica.schema.Compositor |
addParticle, compile, containsAll, fixup, gatherAllPermittedElements, getContentModelSize, getElementParticleCardinality, getElementParticleType, getListOfParticles, getSimplifiedContentModel, getTerm, isEmpty, iterateParticles, lookForCycles, setContentModel, validate |
Methods inherited from class com.saxonica.schema.SchemaStructure |
getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, setConfiguration, setFixupStatus, setLineNumber, setLocator, setSystemId, setValidationStatus |
AllCompositor
public AllCompositor()
isEmptiable
public boolean isEmptiable()
throws UnresolvedReferenceException
- Determine if empty content is allowed
- Returns:
- true if this content model permits empty content
- Throws:
UnresolvedReferenceException
isPointless
public boolean isPointless(Particle container)
- Test whether the compositor is pointless, as described in XML Schema Part 1
Schema Component Constraint: Particle Valid (Restriction)
- Specified by:
isPointless
in interface Particle
- Overrides:
isPointless
in class Compositor
serialize
public void serialize(SchemaSerializer serializer)
throws IOException
- Serialize the schema component
- Throws:
IOException
getComponentTypeCode
public int getComponentTypeCode()
- Get a unique number identifying the type of component
Copyright (C) Michael H. Kay. All rights reserved.