Public Member Functions | |
| ModelGroup () | |
| ModelGroup (Schema schema) | |
| ModelGroup (String name, Schema schema) | |
| void | addModelGroup (ModelGroup modelGroup) |
| Enumeration | enumerate () |
| Enumeration | getDeclarations () |
| ContentModelGroup | getContentModelGroup () |
| String | getName () |
| String | getName (boolean ignoreRef) |
| boolean | isReference () |
| void | setRedefined () |
| boolean | isRedefined () |
| void | setReference (String reference) |
| short | getStructureType () |
| String | getReferenceId () |
| ModelGroup | getReference () |
| boolean | hasReference () |
| void | validate () throws ValidationException |
| Schema | getSchema () |
| void | setSchema (Schema schema) |
An XML Schema ModelGroup : <xsd:group>
| org.exolab.castor.xml.schema.ModelGroup.ModelGroup | ( | ) |
Creates a new ModelGroup, with no name
| org.exolab.castor.xml.schema.ModelGroup.ModelGroup | ( | Schema | schema | ) |
Creates a new ModelGroup definition
| schema,the | XML Schema to which this ModelGroup belongs |
| org.exolab.castor.xml.schema.ModelGroup.ModelGroup | ( | String | name, | |
| Schema | schema | |||
| ) |
Creates a new ModelGroup with the given name
| name | of the ModelGroup |
| void org.exolab.castor.xml.schema.ModelGroup.addModelGroup | ( | ModelGroup | modelGroup | ) |
Adds the given ModelGroup to this ModelGroup
| modelGroup | the ModelGroup to add to this ModelGroup |
| Enumeration org.exolab.castor.xml.schema.ModelGroup.enumerate | ( | ) |
Returns an enumeration of all the Particles of this ContentModelGroup
Reimplemented from org.exolab.castor.xml.schema.Group.
References org.exolab.castor.xml.schema.ContentModelGroup.enumerate(), and org.exolab.castor.xml.schema.ModelGroup.getContentModelGroup().
| ContentModelGroup org.exolab.castor.xml.schema.ModelGroup.getContentModelGroup | ( | ) |
Returns the ContentModelGroup for this group Only used for a <group> element
Reimplemented from org.exolab.castor.xml.schema.Group.
References org.exolab.castor.xml.schema.ModelGroup.getContentModelGroup(), and org.exolab.castor.xml.schema.ModelGroup.getReference().
Referenced by org.exolab.castor.xml.schema.ModelGroup.enumerate(), org.exolab.castor.xml.schema.ModelGroup.getContentModelGroup(), and org.exolab.castor.xml.schema.ModelGroup.validate().
| Enumeration org.exolab.castor.xml.schema.ModelGroup.getDeclarations | ( | ) |
Returns an ordered Enumeration of all the ContentModelType definitions (element, group, modelGroupRef)+
| String org.exolab.castor.xml.schema.ModelGroup.getName | ( | ) |
Returns the name of this ModelGroup.
Reimplemented from org.exolab.castor.xml.schema.Group.
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement(), org.exolab.castor.xml.schema.Schema.getModelGroups(), org.exolab.castor.xml.schema.ModelGroup.getReference(), org.exolab.castor.xml.schema.ModelGroup.getReferenceId(), org.exolab.castor.xml.schema.reader.ModelGroupUnmarshaller.ModelGroupUnmarshaller(), org.exolab.castor.xml.schema.Schema.removeGroup(), org.exolab.castor.xml.schema.ContentModelGroupImpl.removeGroup(), and org.exolab.castor.xml.schema.ModelGroup.validate().
| String org.exolab.castor.xml.schema.ModelGroup.getName | ( | boolean | ignoreRef | ) |
Returns the name of this Model Group definition
| ingoreRef | If True the name of the referenced model group (if specified) is returned |
| ModelGroup org.exolab.castor.xml.schema.ModelGroup.getReference | ( | ) |
Returns the reference if any
References org.exolab.castor.xml.schema.Schema.getMasterSchema(), org.exolab.castor.xml.schema.Schema.getModelGroup(), and org.exolab.castor.xml.schema.ModelGroup.getName().
Referenced by org.exolab.castor.xml.schema.ModelGroup.getContentModelGroup(), org.exolab.castor.builder.binding.XMLBindingComponent.getSchema(), and org.exolab.castor.xml.schema.ModelGroup.validate().
| String org.exolab.castor.xml.schema.ModelGroup.getReferenceId | ( | ) |
Returns the Id used to Refer to this Object
Reimplemented from org.exolab.castor.xml.schema.Group.
References org.exolab.castor.xml.schema.ModelGroup.getName().
| Schema org.exolab.castor.xml.schema.ModelGroup.getSchema | ( | ) |
Returns the schema that contains this modelGroup definition
Referenced by org.exolab.castor.builder.binding.XMLBindingComponent.getSchema().
| short org.exolab.castor.xml.schema.ModelGroup.getStructureType | ( | ) |
Returns the type of this Schema Structure
Reimplemented from org.exolab.castor.xml.schema.Group.
Referenced by org.exolab.castor.xml.schema.ModelGroup.validate().
| boolean org.exolab.castor.xml.schema.ModelGroup.hasReference | ( | ) |
Returns true if this ModelGroup is referencing another one
| boolean org.exolab.castor.xml.schema.ModelGroup.isRedefined | ( | ) |
Returns true if this group is a redefinition.
Referenced by org.exolab.castor.xml.schema.Schema.addModelGroup(), and org.exolab.castor.xml.schema.ModelGroup.validate().
| boolean org.exolab.castor.xml.schema.ModelGroup.isReference | ( | ) |
Returns true if this model group definition simply references another model group Definition
Referenced by org.exolab.castor.builder.binding.XMLBindingComponent.getSchema(), and org.exolab.castor.xml.schema.ContentModelGroupImpl.removeGroup().
| void org.exolab.castor.xml.schema.ModelGroup.setRedefined | ( | ) |
Sets this Group has redefined.
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement().
| void org.exolab.castor.xml.schema.ModelGroup.setReference | ( | String | reference | ) |
Sets the reference for this ModelGroup definition
| reference | the name of the ModelGroup that this definition references |
Referenced by org.exolab.castor.xml.schema.reader.ModelGroupUnmarshaller.ModelGroupUnmarshaller().
| void org.exolab.castor.xml.schema.ModelGroup.setSchema | ( | Schema | schema | ) |
| void org.exolab.castor.xml.schema.ModelGroup.validate | ( | ) | throws ValidationException |
Checks the validity of this Schema defintion.
| ValidationException | when this Schema definition is invalid. |
Reimplemented from org.exolab.castor.xml.schema.Group.
References org.exolab.castor.xml.schema.ModelGroup.getContentModelGroup(), org.exolab.castor.xml.schema.ContentModelGroup.getMaxOccurs(), org.exolab.castor.xml.schema.ContentModelGroup.getMinOccurs(), org.exolab.castor.xml.schema.ModelGroup.getName(), org.exolab.castor.xml.schema.Group.getParent(), org.exolab.castor.xml.schema.Group.getParticle(), org.exolab.castor.xml.schema.Group.getParticleCount(), org.exolab.castor.xml.schema.ModelGroup.getReference(), org.exolab.castor.xml.schema.Structure.getStructureType(), org.exolab.castor.xml.schema.ModelGroup.getStructureType(), and org.exolab.castor.xml.schema.ModelGroup.isRedefined().
1.7.0