Class XSParticleDecl

  • All Implemented Interfaces:
    XSObject, XSParticle

    public class XSParticleDecl
    extends Object
    implements XSParticle
    Store schema particle declaration.
    Version:
    $Id$
    Author:
    Sandy Gao, IBM
    • Constructor Detail

      • XSParticleDecl

        public XSParticleDecl()
    • Method Detail

      • emptiable

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

        public boolean isEmpty()
      • 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.
      • maxEffectiveTotalRange

        public int maxEffectiveTotalRange()
      • reset

        public void reset()
      • getType

        public short getType()
        Get the type of the object, i.e ELEMENT_DECLARATION.
        Specified by:
        getType in interface XSObject
      • getName

        public String getName()
        The name of this XSObject depending on the XSObject type.
        Specified by:
        getName in interface XSObject
      • 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.
        Specified by:
        getNamespace in interface XSObject
      • getMinOccurs

        public int getMinOccurs()
        {min occurs} determines the minimum number of terms that can occur.
        Specified by:
        getMinOccurs in interface XSParticle
      • getMaxOccursUnbounded

        public boolean getMaxOccursUnbounded()
        {max occurs} whether the maxOccurs value is unbounded.
        Specified by:
        getMaxOccursUnbounded in interface XSParticle
      • getMaxOccurs

        public int getMaxOccurs()
        {max occurs} determines the maximum number of terms that can occur.
        Specified by:
        getMaxOccurs in interface XSParticle
      • getTerm

        public XSTerm getTerm()
        {term} One of a model group, a wildcard, or an element declaration.
        Specified by:
        getTerm in interface XSParticle