org.exolab.castor.xml.schema
public class ModelGroup extends Group
Version: $Revision: 6230 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Constructor Summary | |
---|---|
ModelGroup()
Creates a new ModelGroup, with no name
| |
ModelGroup(Schema schema)
Creates a new ModelGroup definition | |
ModelGroup(String name, Schema schema)
Creates a new ModelGroup with the given name |
Method Summary | |
---|---|
void | addModelGroup(ModelGroup modelGroup)
Adds the given ModelGroup to this ModelGroup |
Enumeration | enumerate()
Returns an enumeration of all the Particles of this
ContentModelGroup
|
ContentModelGroup | getContentModelGroup()
Returns the ContentModelGroup for this group
Only used for a |
Enumeration | getDeclarations()
Returns an ordered Enumeration of all the ContentModelType
definitions (element, group, modelGroupRef)+
|
String | getName()
Returns the name of this ModelGroup. |
String | getName(boolean ignoreRef)
Returns the name of this Model Group definition
|
ModelGroup | getReference()
Returns the reference if any |
String | getReferenceId()
Returns the Id used to Refer to this Object |
Schema | getSchema()
Returns the schema that contains this modelGroup definition |
short | getStructureType()
Returns the type of this Schema Structure |
boolean | hasReference()
Returns true if this ModelGroup is referencing another one |
boolean | isRedefined()
Returns true if this group is a redefinition.
|
boolean | isReference()
Returns true if this model group definition simply references another
model group Definition |
void | setRedefined()
Sets this Group has redefined. |
void | setReference(String reference)
Sets the reference for this ModelGroup definition |
void | setSchema(Schema schema)
Sets the Schema that contains this group.
|
void | validate()
Checks the validity of this Schema defintion. |
Parameters: schema the XML Schema to which this ModelGroup belongs
Parameters: name of the ModelGroup
Parameters: modelGroup the ModelGroup to add to this ModelGroup
Returns: an enumeration of the Particles contained within this ContentModelGroup
Returns: the ContentModelGroup for this group
Returns: the name of this ModelGroup.
Parameters: ignoreRef If True the name of the referenced model group (if specified) is returned
Returns: the name of this element declaration
Returns: the reference if any
Returns: the type of this Schema Structure
Returns: true if this ModelGroup is referencing another one
Returns: true if this group is a redefinition.
Returns: true if this model group definition is a reference
Parameters: reference the name of the ModelGroup that this definition references
Parameters: schema the Schema that contains this group.
Throws: ValidationException when this Schema definition is invalid.