org.apache.ws.jaxme.xs.xml

Interface XsAGOccurs

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
intgetMaxOccurs()

-1 for 'unbounded'

intgetMinOccurs()
voidsetMaxOccurs(String pMaxOccurs)

Either of 'unbounded' or a nonnegative integer value.

voidsetMinOccurs(int pMinOccurs)
voidvalidate()

Verifies whether the attribute group constraints are met.

Method Detail

getMaxOccurs

public int getMaxOccurs()

-1 for 'unbounded'

getMinOccurs

public int getMinOccurs()

setMaxOccurs

public void setMaxOccurs(String pMaxOccurs)

Either of 'unbounded' or a nonnegative integer value.

setMinOccurs

public void setMinOccurs(int pMinOccurs)

validate

public void validate()

Verifies whether the attribute group constraints are met.