public class

XSParticleDecl

extends Object
implements XSParticle
java.lang.Object
   ↳ org.apache.xerces.impl.xs.XSParticleDecl

Class Overview

Store schema particle declaration.

Summary

Constants
short PARTICLE_ELEMENT
short PARTICLE_EMPTY
short PARTICLE_MODELGROUP
short PARTICLE_ONE_OR_MORE
short PARTICLE_WILDCARD
short PARTICLE_ZERO_OR_MORE
short PARTICLE_ZERO_OR_ONE
Fields
public XSObjectList fAnnotations
public int fMaxOccurs
public int fMinOccurs
public short fType
public XSTerm fValue
Public Constructors
XSParticleDecl()
Public Methods
boolean emptiable()
3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptible
XSObjectList getAnnotations()
Optional.
int getMaxOccurs()
{max occurs} determines the maximum number of terms that can occur.
boolean getMaxOccursUnbounded()
{max occurs} whether the maxOccurs value is unbounded.
int getMinOccurs()
{min occurs} determines the minimum number of terms that can occur.
String getName()
The name of this XSObject depending on the XSObject type.
String getNamespace()
The namespace URI of this node, or null if it is unspecified.
XSNamespaceItem getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.
XSTerm getTerm()
{term} One of a model group, a wildcard, or an element declaration.
short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
boolean isEmpty()
XSParticleDecl makeClone()
int maxEffectiveTotalRange()
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.
void reset()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xs.XSObject
From interface org.apache.xerces.xs.XSParticle

Constants

public static final short PARTICLE_ELEMENT

Constant Value: 1 (0x00000001)

public static final short PARTICLE_EMPTY

Constant Value: 0 (0x00000000)

public static final short PARTICLE_MODELGROUP

Constant Value: 3 (0x00000003)

public static final short PARTICLE_ONE_OR_MORE

Constant Value: 6 (0x00000006)

public static final short PARTICLE_WILDCARD

Constant Value: 2 (0x00000002)

public static final short PARTICLE_ZERO_OR_MORE

Constant Value: 4 (0x00000004)

public static final short PARTICLE_ZERO_OR_ONE

Constant Value: 5 (0x00000005)

Fields

public XSObjectList fAnnotations

public int fMaxOccurs

public int fMinOccurs

public short fType

public XSTerm fValue

Public Constructors

public XSParticleDecl ()

Public Methods

public boolean emptiable ()

3.9.6 Schema Component Constraint: Particle Emptiable whether this particle is emptible

public XSObjectList getAnnotations ()

Optional. Annotations.

public int getMaxOccurs ()

{max occurs} determines the maximum number of terms that can occur.

public boolean getMaxOccursUnbounded ()

{max occurs} whether the maxOccurs value is unbounded.

public int getMinOccurs ()

{min occurs} determines the minimum number of terms that can occur.

public String getName ()

The name of this XSObject depending on the XSObject type.

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.

public XSNamespaceItem getNamespaceItem ()

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

public XSTerm getTerm ()

{term} One of a model group, a wildcard, or an element declaration.

public short getType ()

Get the type of the object, i.e ELEMENT_DECLARATION.

public boolean isEmpty ()

public XSParticleDecl makeClone ()

public int maxEffectiveTotalRange ()

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.

public void reset ()

public String toString ()