org.exolab.castor.builder
Class GroupInfo
java.lang.Object
org.exolab.castor.builder.GroupInfo
public class GroupInfo
extends java.lang.Object
A class to hold group information
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:07:43 $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
|
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 occurance 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
|
ALL
public static final int ALL
The compositor value that indicates that all fields are
required, but order is not important.
default
CHOICE
public static final int CHOICE
The compositor value that indicates that only one
field may be present
SEQUENCE
public static final int SEQUENCE
The compositor value that indicates that all fields are
required and order is important
GroupInfo
public GroupInfo()
Creates a new GroupInfo
getMaxOccurs
public int getMaxOccurs()
Returns the maximum occurance for this group
- the maximum occurance for this group
getMinOccurs
public int getMinOccurs()
Returns the minimum occurance for this group
- the minimum occurance for this group
isChoice
public boolean isChoice()
Returns true if the compositor of this GroupInfo is a choice
- true if the compositor of this GroupInfo is a choice
isMultivalued
public boolean isMultivalued()
Return whether or not the object described by this XMLInfo
is multi-valued (appears more than once in the XML document)
- true if this object can appear more than once
isRequired
public boolean isRequired()
Return true if the XML object described by this GroupInfo must
appear at least once in the XML document (or object model)
- true if the XML object must appear at least once
isSequence
public boolean isSequence()
Returns true if the compositor of this GroupInfo is a sequence
- true if the compositor of this GroupInfo is a sequence
setAsAll
public void setAsAll()
Sets the compositor for the fields of this group to
be "all".
setAsChoice
public void setAsChoice()
Sets the compositor for the fields of this group to
be a choice
setAsSequence
public void setAsSequence()
Sets the compositor for the fields of this group to
be a sequence
setMaxOccurs
public void setMaxOccurs(int maxOccurs)
Sets the maximum occurance for this group
maxOccurs
- the maximum occurance this group must appear
setMinOccurs
public void setMinOccurs(int minOccurs)
Sets the minimum occurance for this group
minOccurs
- the minimum occurance this group must appear
setMultivalued
public void 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
setRequired
public void 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
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com