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


com.saxonica.schema
Interface Particle

All Known Implementing Classes:
AbstractParticle, ElementWildcard

public interface Particle

Represents a Particle as defined by XML Schema. A particle is a component of a content model, consisting of a term and a permitted cardinality range. The term may be an element declaration, a wildcard, a sequence, a choice, or all.


Method Summary
 void compile(Schema schema, UserComplexType subjectType)
          Compile complex types
 int getMaxOccurs()
          Returns the maximum number of occurrences that this CMParticle may appear
 int getMinOccurs()
          Returns the minimum number of occurrences that this Particle must appear
 Term getTerm()
          Returns the term contained by this particle
 boolean isEmptiable()
          Determine if empty content is allowed
 

Method Detail

getMaxOccurs

public int getMaxOccurs()
Returns the maximum number of occurrences that this CMParticle may appear

Returns:
the maximum number of occurrences that this CMParticle may appear. A non positive (n < 1) value indicates that the value is unspecified (ie. unbounded).

getMinOccurs

public int getMinOccurs()
Returns the minimum number of occurrences that this Particle must appear

Returns:
the minimum number of occurrences that this Particle must appear A negative (n < 0) value indicates that the value is unspecified.

getTerm

public Term getTerm()
Returns the term contained by this particle


isEmptiable

public boolean isEmptiable()
Determine if empty content is allowed


compile

public void compile(Schema schema,
                    UserComplexType subjectType)
             throws SchemaException
Compile complex types

Parameters:
schema - used for error reporting purposes
subjectType - the complex type being compiled
SchemaException


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