public final class GroupInfo extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL
The compositor value that indicates that all fields are required, but
order is not important.
|
static int |
CHOICE
The compositor value that indicates that only one field may be present.
|
static int |
SEQUENCE
The compositor value that indicates that all fields are required and
order is important.
|
Constructor and Description |
---|
GroupInfo()
Creates a new GroupInfo.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxOccurs()
Returns the maximum occurance for this group.
|
int |
getMinOccurs()
Returns the minimum occurance for this group.
|
boolean |
isChoice()
Returns true if the compositor of this GroupInfo is a choice.
|
boolean |
isMultivalued()
Return whether or not the object described by this XMLInfo is
multi-valued (appears more than once in the XML document).
|
boolean |
isRequired()
Return true if the XML object described by this GroupInfo must appear at
least once in the XML document (or object model).
|
boolean |
isSequence()
Returns true if the compositor of this GroupInfo is a sequence.
|
void |
setAsAll()
Sets the compositor for the fields of this group to be "all".
|
void |
setAsChoice()
Sets the compositor for the fields of this group to be a choice.
|
void |
setAsSequence()
Sets the compositor for the fields of this group to be a sequence.
|
void |
setMaxOccurs(int maxOccurs)
Sets the maximum occurance for this group.
|
void |
setMinOccurs(int minOccurs)
Sets the minimum occurrence for this group.
|
void |
setMultivalued(boolean multivalued)
Sets whether the XML object can appear more than once in the XML
document.
|
void |
setRequired(boolean required)
Sets whether or not the XML object must appear at least once.
|
public static final int ALL
public static final int CHOICE
public static final int SEQUENCE
public int getMaxOccurs()
public int getMinOccurs()
public boolean isMultivalued()
public boolean isRequired()
public boolean isChoice()
public boolean isSequence()
public void setAsAll()
public void setAsChoice()
public void setAsSequence()
public void setMaxOccurs(int maxOccurs)
maxOccurs
- the maximum occurance this group must appearpublic void setMinOccurs(int minOccurs)
minOccurs
- the minimum occurance this group must appearpublic void setMultivalued(boolean multivalued)
multivalued
- the boolean indicating whether or not the object can
appear more than oncepublic void setRequired(boolean required)
required
- the flag indicating whether or not this XML object is
requiredCopyright © 2014. All rights reserved.