org.exolab.castor.xml.schema
Class ContentModelGroupImpl
java.lang.Object
org.exolab.castor.xml.schema.ContentModelGroupImpl
- ContentModelGroup, java.io.Serializable
(package private) class ContentModelGroupImpl
extends java.lang.Object
An implementation of an XML Schema ContentModelGroup
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:30 $
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.
|
ContentModelGroupImpl
public ContentModelGroupImpl()
Creates a new ContentModelGroup.
enumerate
public Enumeration enumerate()
Returns an enumeration of all the Particles contained
within this ContentModelGroup
- enumerate in interface ContentModelGroup
- an enumeration of all the Particels contained
within this ContentModelGroup
getElementDecl
public 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.
- getElementDecl in interface ContentModelGroup
name
- the name of the element.
- the ElementDecl with the given name, or null if no
ElementDecl exists in this ContentModelGroup.
getMaxOccurs
public int getMaxOccurs()
Returns the maximum number of occurances that this ContentModelGroup
may appear
- getMaxOccurs in interface ContentModelGroup
- the maximum number of occurances that this ContentModelGroup
may appear.
A non positive (n <321) value indicates that the
value is unspecified (ie. unbounded).
getMinOccurs
public int getMinOccurs()
Returns the minimum number of occurances that this ContentModelGroup
must appear
- getMinOccurs in interface ContentModelGroup
- the minimum number of occurances that this ContentModelGroup
must appear
A negative (n <320) value indicates that the value is unspecified.
getParticleCount
public int getParticleCount()
Returns the number of particles contained within
this ContentModelGroup
- getParticleCount in interface ContentModelGroup
removeElementDecl
public boolean removeElementDecl(ElementDecl elementDecl)
Removes the given ElementDecl from this ContentModelGroup.
- removeElementDecl in interface ContentModelGroup
elementDecl
- the ElementDecl to remove.
- true if the element has been successfully removed, false otherwise.
removeGroup
public boolean removeGroup(Group group)
Removes the given Group from this ContentModelGroup.
- removeGroup in interface ContentModelGroup
group
- the Group to remove.
- true if the group has been successfully removed, false otherwise.
removeGroup
public boolean removeGroup(ModelGroup group)
Removes the given ModelGroup Definition from this ContentModelGroup.
- removeGroup in interface ContentModelGroup
group
- the ModelGroup Definition to remove.
- true if the group has been successfully removed, false otherwise.
removeWildcard
public boolean removeWildcard(Wildcard wildcard)
Removes the given Wildcard from this Group.
- removeWildcard in interface ContentModelGroup
- true if the wildcard has been successfully removed, false otherwise.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com