|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An XML Schema ModelGroup
| 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 wilcard)
Adds the given 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 ContentModelGroup. |
| Method Detail |
public void addElementDecl(ElementDecl elementDecl)
throws SchemaException
elementDecl - the ElementDecl to add
SchemaException - when an ElementDecl already
exists with the same name as the given ElementDeclpublic boolean removeElementDecl(ElementDecl elementDecl)
elementDecl - the ElementDecl to remove.
public void addGroup(Group group)
throws SchemaException
group - 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)
group - the Group to remove.
public void addGroup(ModelGroup group)
throws SchemaException
group - the ModelGroup to add
SchemaException - when a group with the same name as the
specified group already exists in the current scopepublic boolean removeGroup(ModelGroup group)
group - the ModelGroup Definition to remove.
public void addWildcard(Wildcard wilcard)
throws SchemaException
wilcard - the wilcard to add
SchemaException - when the wilcard is public boolean removeWildcard(Wildcard wildcard)
public java.util.Enumeration enumerate()
public ElementDecl getElementDecl(java.lang.String name)
name - the name of the element.
public int getMaxOccurs()
public int getMinOccurs()
public int getParticleCount()
public Particle getParticle(int index)
index - the index of the particle to return
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||