org.exolab.castor.xml.schema
public class RedefineSchema extends Annotated
This class is a wrapper used to save meta information concerning redefined structures from an XML schema.
This wrapper is identified by:
Version: $Revision: 6230 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
Nested Class Summary | |
---|---|
class | RedefineSchema.EmptyEnumeration |
Constructor Summary | |
---|---|
RedefineSchema(Schema parentSchema)
Default constructor to create a RedefineSchema
that contains only Annotations
| |
RedefineSchema(Schema parentSchema, Schema originalSchema)
Constructs a new RedefineSchema structure |
Method Summary | |
---|---|
void | addAttributeGroup(AttributeGroupDecl attrGroup)
Adds a AttributeGroup name in the list of redefined attributeGroups. |
void | addComplexType(ComplexType complexType)
Adds the given complexType in the list of redefined complexTypes. |
void | addGroup(ModelGroup group)
Adds a group name in the list of redefined groups. |
void | addSimpleType(SimpleType simpleType)
Adds a simpleType in the list of redefined simpleTypes.
|
Enumeration | enumerateAttributeGroups()
Enumerates the attributeGroup names. |
Enumeration | enumerateComplexTypes()
Enumerates the complexType names. |
Enumeration | enumerateGroups()
Enumerates the group names. |
Enumeration | enumerateSimpleTypes()
Enumerates the simpleType names. |
AttributeGroupDecl | getAttributeGroup(String name)
Returns the AttributeGroup corresponding to the given
canonical name (unqualified name).
|
ComplexType | getComplexType(String name)
Returns the ComplexType corresponding to the given name.
|
ModelGroup | getModelGroup(String name)
Returns the Model Group of the given name that is contained in this RedefineSchema.
|
Schema | getOriginalSchema()
Returns the schema imported used for the redefinitions. |
Schema | getParentSchema()
Returns the parent schema in which this RedefineSchema is used.
|
String | getSchemaLocation()
Returns the URI of the imported schema.
|
SimpleType | getSimpleType(String name)
Returns the SimpleType corresponding to the given name.
|
short | getStructureType()
Returns the type of this Redefine Structure |
boolean | hasAttributeGroupRedefinition(String name)
Returns true if this redefinition contains a redefinition for an AttributeGroup with
the given name.
|
boolean | hasComplexTypeRedefinition(String name)
Returns true if this redefinition contains a redefinition for a complexType with
the given name.
|
boolean | hasGroupRedefinition(String name)
Returns true if this redefinition contains a redefinition for a group with
the given name.
|
boolean | hasRedefinition()
Returns true if at least one structure other than
an annotation is present.
|
boolean | hasSimpleTypeRedefinition(String name)
Returns true if this redefinition contains a redefinition for a simpleType with
the given name.
|
boolean | removeAttributeGroup(AttributeGroupDecl attrGroup)
Removes the attributeGroup with the given name from the redefine structure.
|
boolean | removeComplexType(ComplexType complexType)
Removes the complexType with the given name from the redefine structure.
|
boolean | removeGroup(ModelGroup group)
Removes the given ModelGroup from the redefine structure.
|
boolean | removeSimpleType(SimpleType simpleType)
Removes the given simpleType from the redefine structure.
|
void | validate() |
Parameters: complexType the ComplexType to add.
Parameters: simpleType the SimpleType to add.
Returns: an enumeration of the names of the redefined AttributeGroups.
Returns: an enumeration of the names of the redefined ComplexTypes
Returns: an enumeration of the names of the redefined groups.
Returns: an enumeration of the names of the redefined SimpleTypes.
Returns: the AttributeGroup corresponding to the given canonical name (unqualified name).
Parameters: name the name of the ComplexType to look for.
Returns: the ComplexType corresponding to the gven name.
Parameters: name the name of the ModelGroup to retrieve.
Returns: the ModelGroup of the given name contained in this RedefineSchema.
Returns: the original schema imported.
Returns: the parent schema in which this Redefined Schema is used.
Returns: the URI of the imported schema.
Parameters: name the name of the SimpleType to look for.
Returns: the SimpleType corresponding to the gven name.
Returns: the type of this Redefin Structure
Parameters: name the canonical name of the complexType.
Parameters: name the canonical name of the complexType.
Parameters: name the canonical name of the complexType.
Returns: true if at least one structure other than an annotation is present.
Parameters: name the canonical name of the simpleType.
Parameters: attrGroup the attributeGroup to be removed from this Redefined Structure.
Parameters: complexType The complexType to be removed from this Redefined Structure.
Parameters: group the ModelGroup to be removed from this Redefined Structure.
Parameters: simpleType the simpleType to be removed from this Redefined Structure.