|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.ContentModelGroupImpl
An implementation of an XML Schema ContentModelGroup
| 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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentModelGroupImpl()
| Method Detail |
public void addWildcard(Wildcard wildcard)
throws SchemaException
addWildcard in interface ContentModelGroupwildcard - the wilcard to add
SchemaException - thrown when the wildcard
is an
public void addElementDecl(ElementDecl elementDecl)
throws SchemaException
addElementDecl in interface ContentModelGroupelementDecl - the ElementDecl to add
SchemaException - 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 add
SchemaException - 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 add
SchemaException - 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 ContentModelGrouppublic 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 ContentModelGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||