org.apache.ws.jaxme.xs.xml
Interface XsAGOccurs

All Known Subinterfaces:
XsEAny, XsEChoice, XsESequence, XsTAll, XsTElement, XsTExplicitGroup, XsTGroup, XsTGroupRef, XsTLocalElement, XsTRealGroup, XsTTopLevelElement
All Known Implementing Classes:
XsAGOccursImpl, XsEAnyImpl, XsEChoiceImpl, XsESequenceImpl, XsTAllImpl, XsTElementImpl, XsTExplicitGroupImpl, XsTGroupImpl, XsTGroupRefImpl, XsTLocalAllElementImpl, XsTLocalElementImpl, XsTRealGroupImpl, XsTTopLevelElementImpl

public interface XsAGOccurs

Interface of the attribute group xs:occurs, as specified by the following:

  <xs:attributeGroup name="occurs">
    <xs:annotation>
      <xs:documentation>
        for all particles
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="minOccurs" type="xs:nonNegativeInteger"
      use="optional" default="1"/>
    <xs:attribute name="maxOccurs" type="xs:allNNI"
      use="optional" default="1"/>
  </xs:attributeGroup>
 

Implementation note: The implementation must ensure that either 'maxOccurs' is unbounded or 'minOccurs' <= 'maxOccurs'. This is checked by the validate method.

Author:
Jochen Wiedmann

Method Summary
 int getMaxOccurs()
          -1 for 'unbounded'
 int getMinOccurs()
           
 void setMaxOccurs(java.lang.String pMaxOccurs)
          Either of 'unbounded' or a nonnegative integer value.
 void setMinOccurs(int pMinOccurs)
           
 void validate()
          Verifies whether the attribute group constraints are met.
 

Method Detail

setMaxOccurs

void setMaxOccurs(java.lang.String pMaxOccurs)

Either of 'unbounded' or a nonnegative integer value.


getMaxOccurs

int getMaxOccurs()

-1 for 'unbounded'


setMinOccurs

void setMinOccurs(int pMinOccurs)

getMinOccurs

int getMinOccurs()

validate

void validate()
              throws org.xml.sax.SAXException

Verifies whether the attribute group constraints are met.

Throws:
org.xml.sax.SAXException