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'.
| Constructor and Description |
|---|
XsAGOccursImpl(XsObject pOwner) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XsAGOccursImpl(XsObject pOwner)
public void setMaxOccurs(java.lang.String pMaxOccurs)
XsAGOccursEither of 'unbounded' or a nonnegative integer value.
setMaxOccurs in interface XsAGOccurspublic int getMaxOccurs()
XsAGOccurs-1 for 'unbounded'
getMaxOccurs in interface XsAGOccurspublic void setMinOccurs(int pMinOccurs)
setMinOccurs in interface XsAGOccurspublic int getMinOccurs()
getMinOccurs in interface XsAGOccurspublic void validate()
throws org.xml.sax.SAXException
XsAGOccursVerifies whether the attribute group constraints are met.
validate in interface XsAGOccursorg.xml.sax.SAXException