org.apache.xerces.impl.xs

Class XSParticleDecl

public class XSParticleDecl extends Object implements XSParticle

Store schema particle declaration.

Version: $Id: XSParticleDecl.java,v 1.15 2004/10/06 15:14:55 mrglavas Exp $

Author: Sandy Gao, IBM

UNKNOWN:

Field Summary
intfMaxOccurs
intfMinOccurs
shortfType
XSTermfValue
static shortPARTICLE_ELEMENT
static shortPARTICLE_EMPTY
static shortPARTICLE_MODELGROUP
static shortPARTICLE_ONE_OR_MORE
static shortPARTICLE_WILDCARD
static shortPARTICLE_ZERO_OR_MORE
static shortPARTICLE_ZERO_OR_ONE
Method Summary
booleanemptiable()
3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptible
intgetMaxOccurs()
{max occurs} determines the maximum number of terms that can occur.
booleangetMaxOccursUnbounded()
{max occurs} whether the maxOccurs value is unbounded.
intgetMinOccurs()
{min occurs} determines the minimum number of terms that can occur.
StringgetName()
The name of this XSObject depending on the XSObject type.
StringgetNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.
XSNamespaceItemgetNamespaceItem()
XSTermgetTerm()
{term} One of a model group, a wildcard, or an element declaration.
shortgetType()
Get the type of the object, i.e ELEMENT_DECLARATION.
booleanisEmpty()
XSParticleDeclmakeClone()
intmaxEffectiveTotalRange()
intminEffectiveTotalRange()
3.8.6 Effective Total Range (all and sequence) and Effective Total Range (choice) The following methods are used to return min/max range for a particle.
voidreset()
StringtoString()

Field Detail

fMaxOccurs

public int fMaxOccurs

fMinOccurs

public int fMinOccurs

fType

public short fType

fValue

public XSTerm fValue

PARTICLE_ELEMENT

public static final short PARTICLE_ELEMENT

PARTICLE_EMPTY

public static final short PARTICLE_EMPTY

PARTICLE_MODELGROUP

public static final short PARTICLE_MODELGROUP

PARTICLE_ONE_OR_MORE

public static final short PARTICLE_ONE_OR_MORE

PARTICLE_WILDCARD

public static final short PARTICLE_WILDCARD

PARTICLE_ZERO_OR_MORE

public static final short PARTICLE_ZERO_OR_MORE

PARTICLE_ZERO_OR_ONE

public static final short PARTICLE_ZERO_OR_ONE

Method Detail

emptiable

public boolean emptiable()
3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptible

getMaxOccurs

public int getMaxOccurs()
{max occurs} determines the maximum number of terms that can occur.

getMaxOccursUnbounded

public boolean getMaxOccursUnbounded()
{max occurs} whether the maxOccurs value is unbounded.

getMinOccurs

public int getMinOccurs()
{min occurs} determines the minimum number of terms that can occur.

getName

public String getName()
The name of this XSObject depending on the XSObject type.

getNamespace

public String getNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

getNamespaceItem

public XSNamespaceItem getNamespaceItem()

See Also: org.apache.xerces.xs.XSObject#getNamespaceItem()

getTerm

public XSTerm getTerm()
{term} One of a model group, a wildcard, or an element declaration.

getType

public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.

isEmpty

public boolean isEmpty()

makeClone

public XSParticleDecl makeClone()

maxEffectiveTotalRange

public int maxEffectiveTotalRange()

minEffectiveTotalRange

public int minEffectiveTotalRange()
3.8.6 Effective Total Range (all and sequence) and Effective Total Range (choice) The following methods are used to return min/max range for a particle. They are not exactly the same as it's described in the spec, but all the values from the spec are retrievable by these methods.

reset

public void reset()

toString

public String toString()
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.