Public Member Functions | |
| GroupInfo () | |
| int | getMaxOccurs () |
| int | getMinOccurs () |
| boolean | isMultivalued () |
| boolean | isRequired () |
| boolean | isChoice () |
| boolean | isSequence () |
| void | setAsAll () |
| void | setAsChoice () |
| void | setAsSequence () |
| void | setMaxOccurs (int maxOccurs) |
| void | setMinOccurs (int minOccurs) |
| void | setMultivalued (boolean multivalued) |
| void | setRequired (boolean required) |
Static Public Attributes | |
| static final int | ALL = 0 |
| static final int | CHOICE = 1 |
| static final int | SEQUENCE = 2 |
A class to hold group information
| org.exolab.castor.builder.GroupInfo.GroupInfo | ( | ) |
Creates a new GroupInfo
| int org.exolab.castor.builder.GroupInfo.getMaxOccurs | ( | ) |
Returns the maximum occurance for this group
| int org.exolab.castor.builder.GroupInfo.getMinOccurs | ( | ) |
Returns the minimum occurance for this group
| boolean org.exolab.castor.builder.GroupInfo.isChoice | ( | ) |
Returns true if the compositor of this GroupInfo is a choice
References org.exolab.castor.builder.GroupInfo.CHOICE.
Referenced by org.exolab.castor.builder.ClassInfo.isChoice().
| boolean org.exolab.castor.builder.GroupInfo.isMultivalued | ( | ) |
Return whether or not the object described by this XMLInfo is multi-valued (appears more than once in the XML document)
| boolean org.exolab.castor.builder.GroupInfo.isRequired | ( | ) |
Return true if the XML object described by this GroupInfo must appear at least once in the XML document (or object model)
| boolean org.exolab.castor.builder.GroupInfo.isSequence | ( | ) |
Returns true if the compositor of this GroupInfo is a sequence
References org.exolab.castor.builder.GroupInfo.SEQUENCE.
Referenced by org.exolab.castor.builder.ClassInfo.isSequence().
| void org.exolab.castor.builder.GroupInfo.setAsAll | ( | ) |
Sets the compositor for the fields of this group to be "all".
References org.exolab.castor.builder.GroupInfo.ALL.
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
| void org.exolab.castor.builder.GroupInfo.setAsChoice | ( | ) |
Sets the compositor for the fields of this group to be a choice
References org.exolab.castor.builder.GroupInfo.CHOICE.
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
| void org.exolab.castor.builder.GroupInfo.setAsSequence | ( | ) |
Sets the compositor for the fields of this group to be a sequence
References org.exolab.castor.builder.GroupInfo.SEQUENCE.
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
| void org.exolab.castor.builder.GroupInfo.setMaxOccurs | ( | int | maxOccurs | ) |
Sets the maximum occurance for this group
| maxOccurs | the maximum occurance this group must appear |
| void org.exolab.castor.builder.GroupInfo.setMinOccurs | ( | int | minOccurs | ) |
Sets the minimum occurance for this group
| minOccurs | the minimum occurance this group must appear |
| void org.exolab.castor.builder.GroupInfo.setMultivalued | ( | boolean | multivalued | ) |
Sets whether the XML object can appear more than once in the XML document
| multivalued | the boolean indicating whether or not the object can appear more than once |
| void org.exolab.castor.builder.GroupInfo.setRequired | ( | boolean | required | ) |
Sets whether or not the XML object must appear at least once
| required | the flag indicating whether or not this XML object is required |
final int org.exolab.castor.builder.GroupInfo.ALL = 0 [static] |
The compositor value that indicates that all fields are required, but order is not important. default
Referenced by org.exolab.castor.builder.GroupInfo.setAsAll().
final int org.exolab.castor.builder.GroupInfo.CHOICE = 1 [static] |
The compositor value that indicates that only one field may be present
Referenced by org.exolab.castor.builder.GroupInfo.isChoice(), and org.exolab.castor.builder.GroupInfo.setAsChoice().
final int org.exolab.castor.builder.GroupInfo.SEQUENCE = 2 [static] |
The compositor value that indicates that all fields are required and order is important
Referenced by org.exolab.castor.builder.GroupInfo.isSequence(), and org.exolab.castor.builder.GroupInfo.setAsSequence().
1.7.0