com.saxonica.schema
Class SequenceCompositor

java.lang.Object
  extended by com.saxonica.schema.SchemaStructure
      extended by com.saxonica.schema.AbstractParticle
          extended by com.saxonica.schema.Compositor
              extended by com.saxonica.schema.SequenceCompositor
All Implemented Interfaces:
Particle, SerializableSchemaComponent, Term, UserSchemaComponent, Serializable, SourceLocator, SchemaComponent

public class SequenceCompositor
extends Compositor

A SequenceCompositor represents an xs:sequence element in the schema

See Also:
Serialized Form

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
SequenceCompositor()
           
 
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
 boolean validate(SchemaCompiler compiler)
          Checks the validity of this Compositor definition.
 
Methods inherited from class com.saxonica.schema.Compositor
addParticle, compile, containsAll, fixup, gatherAllPermittedElements, getContentModelSize, getElementParticleCardinality, getElementParticleType, getListOfParticles, getSimplifiedContentModel, getTerm, isEmpty, iterateParticles, lookForCycles, 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

SequenceCompositor

public SequenceCompositor()
Method Detail

isEmptiable

public boolean isEmptiable()
                    throws UnresolvedReferenceException
Determine if empty content is allowed

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

validate

public boolean validate(SchemaCompiler compiler)
                 throws SchemaException,
                        ValidationException
Checks the validity of this Compositor definition.

Specified by:
validate in interface UserSchemaComponent
Overrides:
validate in class Compositor
Returns:
true when this Schema definition is valid, otherwise false.
Throws:
SchemaException - when the error listener decides an error is fatal
ValidationException

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.