Public Member Functions | |
Group () | |
Group (String name) | |
void | addWildcard (Wildcard wildcard) throws SchemaException |
boolean | removeWildcard (Wildcard wildcard) |
ContentModelGroup | getContentModelGroup () |
String | getId () |
String | getName () |
Order | getOrder () |
Structure | getParent () |
void | setIsModelGroupDefinition (boolean isModelGroupDefinition) |
boolean | isModelGroupDefinition () |
String | getReferenceId () |
void | setName (String name) |
void | setId (String id) |
void | setOrder (Order order) |
void | addElementDecl (ElementDecl elementDecl) throws SchemaException |
boolean | removeElementDecl (ElementDecl element) |
void | addGroup (Group group) throws SchemaException |
boolean | removeGroup (Group group) |
void | addGroup (ModelGroup group) throws SchemaException |
boolean | removeGroup (ModelGroup group) |
Enumeration | enumerate () |
ElementDecl | getElementDecl (String name) |
Particle | getParticle (int index) |
int | getParticleCount () |
short | getStructureType () |
boolean | hasAny () |
void | validate () throws ValidationException |
Protected Member Functions | |
void | setParent (Structure parent) |
org.exolab.castor.xml.schema.Group.Group | ( | ) |
Creates a new Group, with no name
org.exolab.castor.xml.schema.Group.Group | ( | String | name | ) |
void org.exolab.castor.xml.schema.Group.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 |
References org.exolab.castor.xml.schema.ContentModelGroup.addElementDecl().
Referenced by org.exolab.castor.xml.dtd.Converter.convertContentParticle(), org.exolab.castor.xml.dtd.Converter.convertDTDElementToSchemaElement(), org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement(), and org.exolab.castor.xml.schema.reader.GroupUnmarshaller.endElement().
void org.exolab.castor.xml.schema.Group.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 |
References org.exolab.castor.xml.schema.ContentModelGroup.addGroup().
Referenced by org.exolab.castor.xml.dtd.Converter.convertContentParticle(), org.exolab.castor.xml.schema.reader.ModelGroupUnmarshaller.endElement(), and org.exolab.castor.xml.schema.reader.GroupUnmarshaller.endElement().
void org.exolab.castor.xml.schema.Group.addGroup | ( | ModelGroup | group | ) | throws SchemaException |
Adds the given ModelGroup Definition to this Group
group | the ModelGroup to add |
SchemaException | when a group with the same name as the specified group already exists in the current scope |
References org.exolab.castor.xml.schema.ContentModelGroup.addGroup().
void org.exolab.castor.xml.schema.Group.addWildcard | ( | Wildcard | wildcard | ) | throws SchemaException |
Adds a wildcard to this Group model
WildCard | the wildcard to add |
SchemaException | thrown when the wildcard is an <anyAttribute> element |
References org.exolab.castor.xml.schema.ContentModelGroup.addWildcard().
Referenced by org.exolab.castor.xml.dtd.Converter.convertDTDElementToSchemaElement(), and org.exolab.castor.xml.schema.reader.GroupUnmarshaller.endElement().
Enumeration org.exolab.castor.xml.schema.Group.enumerate | ( | ) |
Returns an enumeration of all the Particles of this ContentModelGroup
Reimplemented in org.exolab.castor.xml.schema.ModelGroup.
References org.exolab.castor.xml.schema.ContentModelGroup.enumerate(), org.exolab.castor.xml.schema.Group.enumerate(), org.exolab.castor.xml.schema.Particle.getMaxOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs(), org.exolab.castor.xml.schema.Particle.getMinOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getParticle(), org.exolab.castor.xml.schema.ContentModelGroup.getParticleCount(), and org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.xml.schema.Group.enumerate().
ContentModelGroup org.exolab.castor.xml.schema.Group.getContentModelGroup | ( | ) |
Returns the ContentModelGroup for this group Only used for a <group> element
Reimplemented in org.exolab.castor.xml.schema.ModelGroup.
ElementDecl org.exolab.castor.xml.schema.Group.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. |
References org.exolab.castor.xml.schema.ContentModelGroup.getElementDecl().
Referenced by org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement().
String org.exolab.castor.xml.schema.Group.getId | ( | ) |
String org.exolab.castor.xml.schema.Group.getName | ( | ) |
Returns the name of this Group, or null if no name was defined.
Reimplemented in org.exolab.castor.xml.schema.ModelGroup.
Referenced by org.exolab.castor.builder.GroupNaming.createClassName(), and org.exolab.castor.xml.schema.ContentModelGroupImpl.removeGroup().
Order org.exolab.castor.xml.schema.Group.getOrder | ( | ) |
Returns the compositor for this Group
References org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getParticle(), org.exolab.castor.xml.schema.ContentModelGroup.getParticleCount(), and org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.builder.GroupNaming.createClassName(), org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement(), org.exolab.castor.xml.schema.SchemaNames.getStructureName(), and org.exolab.castor.xml.schema.reader.GroupUnmarshaller.GroupUnmarshaller().
Structure org.exolab.castor.xml.schema.Group.getParent | ( | ) |
Returns the parent of this Group, this value may be null if no parent has been set.
Referenced by org.exolab.castor.builder.GroupNaming.createClassName(), org.exolab.castor.xml.schema.Wildcard.getSchema(), and org.exolab.castor.xml.schema.ModelGroup.validate().
Particle org.exolab.castor.xml.schema.Group.getParticle | ( | int | index | ) |
Returns the Particle at the specified index
index | the index of the particle to return |
References org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getParticle(), org.exolab.castor.xml.schema.ContentModelGroup.getParticleCount(), and org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement(), and org.exolab.castor.xml.schema.ModelGroup.validate().
int org.exolab.castor.xml.schema.Group.getParticleCount | ( | ) |
Returns the number of particles contained within this ContentModelGroup
References org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getParticle(), org.exolab.castor.xml.schema.ContentModelGroup.getParticleCount(), and org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement(), and org.exolab.castor.xml.schema.ModelGroup.validate().
String org.exolab.castor.xml.schema.Group.getReferenceId | ( | ) |
Returns the Id used to Refer to this Object
Implements org.exolab.castor.xml.schema.Referable.
Reimplemented in org.exolab.castor.xml.schema.ModelGroup.
short org.exolab.castor.xml.schema.Group.getStructureType | ( | ) |
Returns the type of this Schema Structure
Reimplemented in org.exolab.castor.xml.schema.ModelGroup.
Referenced by org.exolab.castor.xml.schema.Group.hasAny().
boolean org.exolab.castor.xml.schema.Group.hasAny | ( | ) |
A helper method that returns true if this group contains an <any> element.
References org.exolab.castor.xml.schema.Structure.ELEMENT, org.exolab.castor.xml.schema.ContentModelGroup.enumerate(), and org.exolab.castor.xml.schema.Group.getStructureType().
boolean org.exolab.castor.xml.schema.Group.isModelGroupDefinition | ( | ) |
Tells if the group is a model group definition
boolean org.exolab.castor.xml.schema.Group.removeElementDecl | ( | ElementDecl | element | ) |
Removes the given ElementDecl from this ContentModelGroup.
elementDecl | the ElementDecl to remove. |
References org.exolab.castor.xml.schema.ContentModelGroup.removeElementDecl().
boolean org.exolab.castor.xml.schema.Group.removeGroup | ( | Group | group | ) |
Removes the given Group from this Group.
group | the Group to remove. |
References org.exolab.castor.xml.schema.ContentModelGroup.removeGroup(), and org.exolab.castor.xml.schema.Group.setParent().
boolean org.exolab.castor.xml.schema.Group.removeGroup | ( | ModelGroup | group | ) |
Removes the given ModelGroup Definition from this Group.
group | the ModelGroup Definition to remove. |
References org.exolab.castor.xml.schema.ContentModelGroup.removeGroup(), and org.exolab.castor.xml.schema.Group.setParent().
boolean org.exolab.castor.xml.schema.Group.removeWildcard | ( | Wildcard | wildcard | ) |
Removes the given Wildcard from this Group.
wilcard | the Wildcard to remove. |
References org.exolab.castor.xml.schema.ContentModelGroup.removeWildcard().
void org.exolab.castor.xml.schema.Group.setId | ( | String | id | ) |
Sets the ID for this Group
id | the ID for this Group |
Referenced by org.exolab.castor.xml.schema.reader.GroupUnmarshaller.GroupUnmarshaller(), and org.exolab.castor.xml.schema.reader.ModelGroupUnmarshaller.ModelGroupUnmarshaller().
void org.exolab.castor.xml.schema.Group.setIsModelGroupDefinition | ( | boolean | isModelGroupDefinition | ) |
Sets if the group is a model group definition
void org.exolab.castor.xml.schema.Group.setName | ( | String | name | ) |
Sets the name of this Group
name | the new name for this Group |
Referenced by org.exolab.castor.xml.schema.reader.GroupUnmarshaller.GroupUnmarshaller(), and org.exolab.castor.xml.schema.reader.ModelGroupUnmarshaller.ModelGroupUnmarshaller().
void org.exolab.castor.xml.schema.Group.setOrder | ( | Order | order | ) |
Sets the Order option for this Group
order | the type of order that this group is restricted to |
References org.exolab.castor.xml.schema.Order.all.
Referenced by org.exolab.castor.xml.dtd.Converter.convertContentParticle(), org.exolab.castor.xml.dtd.Converter.convertDTDElementToSchemaElement(), org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.endElement(), and org.exolab.castor.xml.schema.reader.GroupUnmarshaller.GroupUnmarshaller().
void org.exolab.castor.xml.schema.Group.setParent | ( | Structure | parent | ) | [protected] |
Sets the parent for this Group
References org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.xml.schema.Group.removeGroup(), and org.exolab.castor.xml.schema.ComplexType.removeGroup().
void org.exolab.castor.xml.schema.Group.validate | ( | ) | throws ValidationException |
Checks the validity of this Group defintion.
ValidationException | when this Group definition is invalid. |
Reimplemented in org.exolab.castor.xml.schema.ModelGroup.
References org.exolab.castor.xml.schema.Order.all, org.exolab.castor.xml.schema.ContentModelGroup.enumerate(), org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs(), and org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs().