org.apache.ws.jaxme.xs.xml.impl
Class XsAGOccursImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsAGOccursImpl
All Implemented Interfaces:
XsAGOccurs

public class XsAGOccursImpl
extends java.lang.Object
implements XsAGOccurs

Implementation 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'.

Author:
Jochen Wiedmann

Constructor Summary
XsAGOccursImpl(XsObject pOwner)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsAGOccursImpl

public XsAGOccursImpl(XsObject pOwner)
Method Detail

setMaxOccurs

public void setMaxOccurs(java.lang.String pMaxOccurs)
Description copied from interface: XsAGOccurs

Either of 'unbounded' or a nonnegative integer value.

Specified by:
setMaxOccurs in interface XsAGOccurs

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: XsAGOccurs

-1 for 'unbounded'

Specified by:
getMaxOccurs in interface XsAGOccurs

setMinOccurs

public void setMinOccurs(int pMinOccurs)
Specified by:
setMinOccurs in interface XsAGOccurs

getMinOccurs

public int getMinOccurs()
Specified by:
getMinOccurs in interface XsAGOccurs

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsAGOccurs

Verifies whether the attribute group constraints are met.

Specified by:
validate in interface XsAGOccurs
Throws:
org.xml.sax.SAXException