class ContentModelGroupImpl extends java.lang.Object implements ContentModelGroup, java.io.Serializable
| Constructor and Description |
|---|
ContentModelGroupImpl()
Creates a new ContentModelGroup.
|
| Modifier and Type | Method and 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 a wildcard to this contentModelGroup
|
java.util.Enumeration |
enumerate()
Returns an enumeration of all the Particles 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 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.
|
public ContentModelGroupImpl()
public void addWildcard(Wildcard wildcard) throws SchemaException
addWildcard in interface ContentModelGroupwildcard - the Wildcard to addSchemaException - thrown when the wildcard
is an public void addElementDecl(ElementDecl elementDecl) throws SchemaException
addElementDecl in interface ContentModelGroupelementDecl - the ElementDecl to addSchemaException - when an ElementDecl already
exists with the same name as the given ElementDeclpublic boolean removeElementDecl(ElementDecl elementDecl)
removeElementDecl in interface ContentModelGroupelementDecl - the ElementDecl to remove.public void addGroup(Group group) throws SchemaException
addGroup in interface ContentModelGroupgroup - the Group to addSchemaException - when a group with the same name as the
specified group already exists in the current scopepublic boolean removeGroup(Group group)
removeGroup in interface ContentModelGroupgroup - the Group to remove.public void addGroup(ModelGroup group) throws SchemaException
addGroup in interface ContentModelGroupgroup - the ModelGroup to addSchemaException - when a modelgroup with the same name as the
specified group already exists in the current scopepublic boolean removeGroup(ModelGroup group)
removeGroup in interface ContentModelGroupgroup - the ModelGroup Definition to remove.public boolean removeWildcard(Wildcard wildcard)
removeWildcard in interface ContentModelGroupwildcard - the Wildcard to remove.public java.util.Enumeration enumerate()
enumerate in interface ContentModelGrouppublic ElementDecl getElementDecl(java.lang.String name)
getElementDecl in interface ContentModelGroupname - the name of the element.public int getMaxOccurs()
getMaxOccurs in interface ContentModelGrouppublic int getMinOccurs()
getMinOccurs in interface ContentModelGrouppublic Particle getParticle(int index)
getParticle in interface ContentModelGroupindex - the index of the particle to returnpublic int getParticleCount()
getParticleCount in interface ContentModelGroupIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com