java.io.Serializable
, ContentModelGroup
class ContentModelGroupImpl extends java.lang.Object implements ContentModelGroup, java.io.Serializable
Constructor | Description |
---|---|
ContentModelGroupImpl() |
Modifier and Type | Method | Description |
---|---|---|
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 the given
Wildcard to this ContentModelGroup . |
java.util.Enumeration<Particle> |
enumerate() |
Returns an enumeration of all the
Particle s contained
within this ContentModelGroup . |
ElementDecl |
getElementDecl(java.lang.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 occurrences that this ContentModelGroup
may appear.
|
int |
getMinOccurs() |
Returns the minimum number of occurrences 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 ContentModelGroup . |
public void addWildcard(Wildcard wildcard) throws SchemaException
Wildcard
to this ContentModelGroup
.addWildcard
in interface ContentModelGroup
wildcard
- the Wildcard
to addSchemaException
- when the Wildcard
is <anyAttribute> and
not <any>ContentModelGroup.addWildcard(org.exolab.castor.xml.schema.Wildcard)
public void addElementDecl(ElementDecl elementDecl) throws SchemaException
addElementDecl
in interface ContentModelGroup
elementDecl
- the ElementDecl to addSchemaException
- when an ElementDecl already
exists with the same name as the given ElementDeclContentModelGroup.addElementDecl(org.exolab.castor.xml.schema.ElementDecl)
public boolean removeElementDecl(ElementDecl elementDecl)
removeElementDecl
in interface ContentModelGroup
elementDecl
- the ElementDecl to remove.ContentModelGroup.removeElementDecl(org.exolab.castor.xml.schema.ElementDecl)
public void addGroup(Group group) throws SchemaException
Group
to this ContentModelGroup
.addGroup
in interface ContentModelGroup
group
- the Group to addSchemaException
- when a group with the same name as the
specified group already exists in the current scopeContentModelGroup.addGroup(org.exolab.castor.xml.schema.Group)
public boolean removeGroup(Group group)
Group
from this ContentModelGroup
.removeGroup
in interface ContentModelGroup
group
- the Group to remove.ContentModelGroup.removeGroup(org.exolab.castor.xml.schema.Group)
public void addGroup(ModelGroup group) throws SchemaException
ModelGroup
definition to this ContentModelGroup
.addGroup
in interface ContentModelGroup
group
- the ModelGroup to addSchemaException
- when a group with the same name as the
specified group already exists in the current scopeContentModelGroup.addGroup(org.exolab.castor.xml.schema.ModelGroup)
public boolean removeGroup(ModelGroup group)
ModelGroup
definition from this ContentModelGroup
.removeGroup
in interface ContentModelGroup
group
- the ModelGroup
definition to remove.ContentModelGroup.removeGroup(org.exolab.castor.xml.schema.ModelGroup)
public boolean removeWildcard(Wildcard wildcard)
Wildcard
from this ContentModelGroup
.removeWildcard
in interface ContentModelGroup
wildcard
- the Wildcard
to remove.Wildcard
has been successfully removed, false otherwise.ContentModelGroup.removeWildcard(org.exolab.castor.xml.schema.Wildcard)
public java.util.Enumeration<Particle> enumerate()
Particle
s contained
within this ContentModelGroup
.enumerate
in interface ContentModelGroup
Particle
s contained
within this ContentModelGroup
ContentModelGroup.enumerate()
public ElementDecl getElementDecl(java.lang.String name)
ContentModelGroup
.getElementDecl
in interface ContentModelGroup
name
- the name of the element.ElementDecl
with the given name, or null if no
ElementDecl exists in this ContentModelGroup
.ContentModelGroup.getElementDecl(java.lang.String)
public int getMaxOccurs()
getMaxOccurs
in interface ContentModelGroup
ContentModelGroup.getMaxOccurs()
public int getMinOccurs()
getMinOccurs
in interface ContentModelGroup
ContentModelGroup.getMinOccurs()
public Particle getParticle(int index)
Particle
at the specified index.getParticle
in interface ContentModelGroup
index
- the index of the Particle
to returnContentModelGroup.getParticle(int)
public int getParticleCount()
ContentModelGroup
.getParticleCount
in interface ContentModelGroup
ContentModelGroup.getParticleCount()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com