Public Member Functions | Static Public Attributes | Protected Member Functions

org.exolab.castor.xml.schema.Particle Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.Particle:
org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure org.exolab.castor.xml.schema.ElementDecl org.exolab.castor.xml.schema.Group org.exolab.castor.xml.schema.Wildcard org.exolab.castor.xml.schema.ModelGroup

List of all members.

Public Member Functions

final int getMaxOccurs ()
final int getMinOccurs ()
final void setMaxOccurs (int maxOccurs)
final void setMinOccurs (int minOccurs)

Static Public Attributes

static int UNBOUNDED = -1

Protected Member Functions

 Particle ()
 Particle (int minOccurs, int maxOccurs)

Detailed Description

An abstract class that represents an XML Schema Particle This is not an entirely true representation of how XML Schema depicts a "particle" since this representation of a particle does not hold the "term" component (element, all, choice, sequence, group, any) but rather the "term" extends this class.

Author:
Keith Visco

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.Particle.Particle (  )  [protected]

Default Constructor, uses a default minimum occurance of 1, and a default unbounded maximum occurance

org.exolab.castor.xml.schema.Particle.Particle ( int  minOccurs,
int  maxOccurs 
) [protected]

Constructor for Particle which allows setting the values for maximum and minimum occurances

Parameters:
minOccurs the minimum occurance
maxOccurs the maximum occurance ( -1 for unbounded)

References org.exolab.castor.xml.schema.Particle.setMaxOccurs(), and org.exolab.castor.xml.schema.Particle.setMinOccurs().


Member Function Documentation

final int org.exolab.castor.xml.schema.Particle.getMaxOccurs (  ) 
final int org.exolab.castor.xml.schema.Particle.getMinOccurs (  ) 

Returns the minimum number of occurances that this CMParticle must appear

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

Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfoForAny(), org.exolab.castor.xml.schema.Group.enumerate(), org.exolab.castor.xml.schema.ComplexType.getMinOccurs(), org.exolab.castor.xml.schema.reader.GroupUnmarshaller.GroupUnmarshaller(), and org.exolab.castor.xml.schema.ElementDecl.validate().

final void org.exolab.castor.xml.schema.Particle.setMinOccurs ( int  minOccurs  ) 

Member Data Documentation

A constant to represent an UNBOUNDED particle


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties