Free Trial - Stylus Studio, The World's Best XML IDE!


com.saxonica.schema
Class AllCompositor

java.lang.Object
  |
  +--com.saxonica.schema.SchemaElement
        |
        +--com.saxonica.schema.AbstractParticle
              |
              +--com.saxonica.schema.Compositor
                    |
                    +--com.saxonica.schema.AllCompositor
All Implemented Interfaces:
CircularityChecker, Particle, SchemaComponent, SchemaDeclaration, java.io.Serializable, javax.xml.transform.SourceLocator, Term, ValidationContext

public class AllCompositor
extends Compositor

An AllCompositor represents an xs:all element in the schema

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.saxonica.schema.Compositor
contentModel
 
Fields inherited from class com.saxonica.schema.AbstractParticle
UNBOUNDED
 
Fields inherited from class com.saxonica.schema.SchemaElement
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, COMPOSITOR, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD_ATTRIBUTE, WILDCARD_ELEMENT
 
Constructor Summary
AllCompositor()
           
 
Method Summary
protected  boolean checkElements(java.util.HashMap map, Schema schema)
          Check that the elements defined as particles in this compositor are consistent (overrides method on parent class Compositor)
 boolean fixup(Schema schema)
          Check references from this component to other components
 boolean isEmptiable()
          Determine if empty content is allowed
 
Methods inherited from class com.saxonica.schema.Compositor
addParticle, compile, containsAll, getId, getLocalElementDeclaration, getStructureType, isEmpty, isVoidValidationContext, iterateParticles, lookForCycles, setId, validate
 
Methods inherited from class com.saxonica.schema.AbstractParticle
getMaxOccurs, getMinOccurs, getTerm, setMaxOccurs, setMinOccurs
 
Methods inherited from class com.saxonica.schema.SchemaElement
getColumnNumber, getLineNumber, getPublicId, getSystemId, setLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllCompositor

public AllCompositor()
Method Detail

fixup

public boolean fixup(Schema schema)
Check references from this component to other components

Specified by:
fixup in interface SchemaComponent
Overrides:
fixup in class Compositor
Parameters:
schema - The schema is used for reporting errors
Returns:
true if all is well, false if errors found. This implementation does no checking, and always returns true.

isEmptiable

public boolean isEmptiable()
Determine if empty content is allowed

Returns:
true if this content model permits empty content

checkElements

protected boolean checkElements(java.util.HashMap map,
                                Schema schema)
                         throws SchemaException
Check that the elements defined as particles in this compositor are consistent (overrides method on parent class Compositor)

Overrides:
checkElements in class Compositor
SchemaException


Stylus Studio features integrated development and debugging support for Saxon in the XQuery editor and XSLT editor.