Public Member Functions | |
ContentModelGroupImpl () | |
void | addWildcard (Wildcard wildcard) throws SchemaException |
void | addElementDecl (ElementDecl elementDecl) throws SchemaException |
boolean | removeElementDecl (ElementDecl elementDecl) |
void | addGroup (Group group) throws SchemaException |
boolean | removeGroup (Group group) |
void | addGroup (ModelGroup group) throws SchemaException |
boolean | removeGroup (ModelGroup group) |
boolean | removeWildcard (Wildcard wildcard) |
Enumeration | enumerate () |
ElementDecl | getElementDecl (String name) |
int | getMaxOccurs () |
int | getMinOccurs () |
Particle | getParticle (int index) |
int | getParticleCount () |
An implementation of an XML Schema ContentModelGroup
org.exolab.castor.xml.schema.ContentModelGroupImpl.ContentModelGroupImpl | ( | ) |
Creates a new ContentModelGroup.
void org.exolab.castor.xml.schema.ContentModelGroupImpl.addElementDecl | ( | ElementDecl | elementDecl | ) | throws SchemaException |
Adds the given ElementDecl to this ContentModelGroup
elementDecl | the ElementDecl to add |
SchemaException | when an ElementDecl already exists with the same name as the given ElementDecl |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.ScopableResolver.addResolvable(), and org.exolab.castor.xml.schema.ScopableResolver.resolve().
void org.exolab.castor.xml.schema.ContentModelGroupImpl.addGroup | ( | Group | group | ) | throws SchemaException |
Adds the given Group to this ContentModelGroup
group | the Group to add |
SchemaException | when a group with the same name as the specified group already exists in the current scope |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.ScopableResolver.addResolvable(), and org.exolab.castor.xml.schema.ScopableResolver.resolve().
void org.exolab.castor.xml.schema.ContentModelGroupImpl.addGroup | ( | ModelGroup | group | ) | throws SchemaException |
Adds the given ModelGroup Definition to this ContentModelGroup
group | the ModelGroup to add |
SchemaException | when a modelgroup with the same name as the specified group already exists in the current scope |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.ScopableResolver.addResolvable(), and org.exolab.castor.xml.schema.ScopableResolver.resolve().
void org.exolab.castor.xml.schema.ContentModelGroupImpl.addWildcard | ( | Wildcard | wildcard | ) | throws SchemaException |
Adds a wildcard to this contentModelGroup
WildCard | the wildcard to add |
SchemaException | thrown when the wildcard is an <anyAttribute> element |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
Enumeration org.exolab.castor.xml.schema.ContentModelGroupImpl.enumerate | ( | ) |
Returns an enumeration of all the Particles contained within this ContentModelGroup
Implements org.exolab.castor.xml.schema.ContentModelGroup.
ElementDecl org.exolab.castor.xml.schema.ContentModelGroupImpl.getElementDecl | ( | String | name | ) |
Returns the element declaration with the given name, or null if no element declaration with that name exists in this ContentModelGroup.
name | the name of the element. |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.ElementDecl.getName(), org.exolab.castor.xml.schema.Structure.getStructureType(), org.exolab.castor.xml.schema.Structure.GROUP, and org.exolab.castor.xml.schema.ScopableResolver.resolve().
int org.exolab.castor.xml.schema.ContentModelGroupImpl.getMaxOccurs | ( | ) |
Returns the maximum number of occurances that this ContentModelGroup may appear
Implements org.exolab.castor.xml.schema.ContentModelGroup.
int org.exolab.castor.xml.schema.ContentModelGroupImpl.getMinOccurs | ( | ) |
Returns the minimum number of occurances that this ContentModelGroup must appear
Implements org.exolab.castor.xml.schema.ContentModelGroup.
Particle org.exolab.castor.xml.schema.ContentModelGroupImpl.getParticle | ( | int | index | ) |
Returns the Particle at the specified index
index | the index of the particle to return |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
int org.exolab.castor.xml.schema.ContentModelGroupImpl.getParticleCount | ( | ) |
Returns the number of particles contained within this ContentModelGroup
Implements org.exolab.castor.xml.schema.ContentModelGroup.
boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.removeElementDecl | ( | ElementDecl | elementDecl | ) |
Removes the given ElementDecl from this ContentModelGroup.
elementDecl | the ElementDecl to remove. |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.ElementDecl.getName(), org.exolab.castor.xml.schema.ElementDecl.isReference(), and org.exolab.castor.xml.schema.ScopableResolver.removeResolvable().
boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.removeGroup | ( | ModelGroup | group | ) |
Removes the given ModelGroup Definition from this ContentModelGroup.
group | the ModelGroup Definition to remove. |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.ModelGroup.getName(), org.exolab.castor.xml.schema.ModelGroup.isReference(), and org.exolab.castor.xml.schema.ScopableResolver.removeResolvable().
boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.removeGroup | ( | Group | group | ) |
Removes the given Group from this ContentModelGroup.
group | the Group to remove. |
Implements org.exolab.castor.xml.schema.ContentModelGroup.
References org.exolab.castor.xml.schema.Group.getName(), and org.exolab.castor.xml.schema.ScopableResolver.removeResolvable().
boolean org.exolab.castor.xml.schema.ContentModelGroupImpl.removeWildcard | ( | Wildcard | wildcard | ) |
Removes the given Wildcard from this Group.
wilcard | the Wildcard to remove. |
Implements org.exolab.castor.xml.schema.ContentModelGroup.