org.exolab.castor.xml.schema
class ContentModelGroupImpl extends Object implements ContentModelGroup, Serializable
Version: $Revision: 1.2 $ $Date: 2004/02/18 04:29:03 $
Constructor Summary | |
---|---|
ContentModelGroupImpl()
Creates a new ContentModelGroup.
|
Method Summary | |
---|---|
void | addElementDecl(ElementDecl elementDecl)
Adds the given ElementDecl to this ContentModelGroup |
void | addGroup(Group group)
Adds the given Group to this ContentModelGroup |
void | addGroup(ModelGroup group)
Adds the given ModelGroup Definition to this ContentModelGroup |
void | addWildcard(Wildcard wildcard)
Adds a wildcard to this contentModelGroup |
Enumeration | enumerate()
Returns an enumeration of all the Particles contained
within this ContentModelGroup
|
ElementDecl | getElementDecl(String name)
Returns the element declaration with the given name, or null if no
element declaration with that name exists in this ContentModelGroup.
|
int | getMaxOccurs()
Returns the maximum number of occurances that this ContentModelGroup
may appear |
int | getMinOccurs()
Returns the minimum number of occurances that this ContentModelGroup
must appear |
Particle | getParticle(int index)
Returns the Particle at the specified index |
int | getParticleCount()
Returns the number of particles contained within
this ContentModelGroup
|
boolean | removeElementDecl(ElementDecl elementDecl)
Removes the given ElementDecl from this ContentModelGroup. |
boolean | removeGroup(Group group)
Removes the given Group from this ContentModelGroup. |
boolean | removeGroup(ModelGroup group)
Removes the given ModelGroup Definition from this ContentModelGroup. |
boolean | removeWildcard(Wildcard wildcard)
Removes the given Wildcard from this Group.
|
Parameters: elementDecl the ElementDecl to add
Throws: SchemaException when an ElementDecl already exists with the same name as the given ElementDecl
Parameters: group the Group to add
Throws: SchemaException when a group with the same name as the specified group already exists in the current scope
Parameters: group the ModelGroup to add
Throws: SchemaException when a modelgroup with the same name as the specified group already exists in the current scope
Parameters: WildCard the wildcard to add
Throws: SchemaException thrown when the wildcard
is an
Returns: an enumeration of all the Particels contained within this ContentModelGroup
Parameters: name the name of the element.
Returns: the ElementDecl with the given name, or null if no ElementDecl exists in this ContentModelGroup.
Returns: the maximum number of occurances that this ContentModelGroup may appear. A non positive (n < 1) value indicates that the value is unspecified (ie. unbounded).
Returns: the minimum number of occurances that this ContentModelGroup must appear A negative (n < 0) value indicates that the value is unspecified.
Parameters: index the index of the particle to return
UNKNOWN: the CMParticle at the specified index
Returns: the number of particles
Parameters: elementDecl the ElementDecl to remove.
Returns: true if the element has been successfully removed, false otherwise.
Parameters: group the Group to remove.
Returns: true if the group has been successfully removed, false otherwise.
Parameters: group the ModelGroup Definition to remove.
Returns: true if the group has been successfully removed, false otherwise.
Parameters: wilcard the Wildcard to remove.
Returns: true if the wildcard has been successfully removed, false otherwise.