com.saxonica.schema
Class AllModelGroup

java.lang.Object
  extended by com.saxonica.schema.SchemaStructure
      extended by com.saxonica.schema.ModelGroup
          extended by 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

Field Summary
 
Fields inherited from interface net.sf.saxon.type.SchemaComponent
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING
 
Constructor Summary
AllModelGroup()
           
 
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
 
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

AllModelGroup

public AllModelGroup()
Method Detail

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.