This class is a wrapper used to save meta information concerning redefined structures from an XML schema.
This wrapper is identified by:
org.exolab.castor.xml.schema.RedefineSchema.RedefineSchema | ( | Schema | parentSchema | ) |
Default constructor to create a RedefineSchema that contains only Annotations
org.exolab.castor.xml.schema.RedefineSchema.RedefineSchema | ( | Schema | parentSchema, | |
Schema | originalSchema | |||
) |
Constructs a new RedefineSchema structure
uri | the URI identifying the Schema |
References org.exolab.castor.xml.schema.Schema.getSchemaLocation().
void org.exolab.castor.xml.schema.RedefineSchema.addAttributeGroup | ( | AttributeGroupDecl | attrGroup | ) | throws SchemaException |
Adds a AttributeGroup name in the list of redefined attributeGroups.
name | the AttributeGroup name |
References org.exolab.castor.xml.schema.Schema.getNamespace(), and org.exolab.castor.xml.schema.Schema.getTargetNamespace().
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement().
void org.exolab.castor.xml.schema.RedefineSchema.addComplexType | ( | ComplexType | complexType | ) | throws SchemaException |
Adds the given complexType in the list of redefined complexTypes.
complexType | the ComplexType to add. |
References org.exolab.castor.xml.schema.RedefineSchema.getComplexType().
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement().
void org.exolab.castor.xml.schema.RedefineSchema.addGroup | ( | ModelGroup | group | ) | throws SchemaException |
Adds a group name in the list of redefined groups.
name | the Group name |
References org.exolab.castor.xml.schema.RedefineSchema.getModelGroup().
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement().
void org.exolab.castor.xml.schema.RedefineSchema.addSimpleType | ( | SimpleType | simpleType | ) | throws SchemaException |
Adds a simpleType in the list of redefined simpleTypes.
SimpleType | the SimpleType to add. |
References org.exolab.castor.xml.schema.RedefineSchema.getSimpleType().
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement().
Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateAttributeGroups | ( | ) |
Enumerates the attributeGroup names.
Referenced by org.exolab.castor.xml.schema.Schema.getAttributeGroups().
Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateComplexTypes | ( | ) |
Enumerates the complexType names.
Referenced by org.exolab.castor.xml.schema.Schema.getComplexTypes().
Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateGroups | ( | ) |
Enumerates the group names.
Referenced by org.exolab.castor.xml.schema.Schema.getModelGroups().
Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateSimpleTypes | ( | ) |
Enumerates the simpleType names.
Referenced by org.exolab.castor.xml.schema.Schema.getSimpleTypes().
AttributeGroupDecl org.exolab.castor.xml.schema.RedefineSchema.getAttributeGroup | ( | String | name | ) |
Returns the AttributeGroup corresponding to the given canonical name (unqualified name).
Referenced by org.exolab.castor.xml.schema.Schema.getAttributeGroup().
ComplexType org.exolab.castor.xml.schema.RedefineSchema.getComplexType | ( | String | name | ) |
Returns the ComplexType corresponding to the given name.
name | the name of the ComplexType to look for. |
Referenced by org.exolab.castor.xml.schema.RedefineSchema.addComplexType(), and org.exolab.castor.xml.schema.Schema.getComplexType().
ModelGroup org.exolab.castor.xml.schema.RedefineSchema.getModelGroup | ( | String | name | ) |
Returns the Model Group of the given name that is contained in this RedefineSchema.
name | the name of the ModelGroup to retrieve. |
Referenced by org.exolab.castor.xml.schema.RedefineSchema.addGroup(), and org.exolab.castor.xml.schema.Schema.getModelGroup().
Schema org.exolab.castor.xml.schema.RedefineSchema.getOriginalSchema | ( | ) |
Returns the schema imported used for the redefinitions.
Referenced by org.exolab.castor.xml.schema.Schema.getAttributeGroup(), org.exolab.castor.xml.schema.Schema.getAttributeGroups(), org.exolab.castor.xml.schema.Schema.getComplexType(), org.exolab.castor.xml.schema.Schema.getComplexTypes(), org.exolab.castor.xml.schema.Schema.getElementDecls(), org.exolab.castor.xml.schema.Schema.getModelGroup(), org.exolab.castor.xml.schema.Schema.getModelGroups(), org.exolab.castor.xml.schema.Schema.getSimpleType(), org.exolab.castor.xml.schema.Schema.getSimpleTypes(), and org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.RedefineUnmarshaller().
Schema org.exolab.castor.xml.schema.RedefineSchema.getParentSchema | ( | ) |
Returns the parent schema in which this RedefineSchema is used.
String org.exolab.castor.xml.schema.RedefineSchema.getSchemaLocation | ( | ) |
Returns the URI of the imported schema.
Referenced by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(), org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement(), and org.exolab.castor.xml.schema.Schema.removeRedefineSchema().
SimpleType org.exolab.castor.xml.schema.RedefineSchema.getSimpleType | ( | String | name | ) |
Returns the SimpleType corresponding to the given name.
name | the name of the SimpleType to look for. |
Referenced by org.exolab.castor.xml.schema.RedefineSchema.addSimpleType(), and org.exolab.castor.xml.schema.Schema.getSimpleType().
short org.exolab.castor.xml.schema.RedefineSchema.getStructureType | ( | ) | [virtual] |
Returns the type of this Redefine Structure
Implements org.exolab.castor.xml.schema.Structure.
boolean org.exolab.castor.xml.schema.RedefineSchema.hasAttributeGroupRedefinition | ( | String | name | ) |
Returns true if this redefinition contains a redefinition for an AttributeGroup with the given name.
name | the canonical name of the complexType. |
Referenced by org.exolab.castor.xml.schema.Schema.getAttributeGroup(), and org.exolab.castor.xml.schema.Schema.getAttributeGroups().
boolean org.exolab.castor.xml.schema.RedefineSchema.hasComplexTypeRedefinition | ( | String | name | ) |
Returns true if this redefinition contains a redefinition for a complexType with the given name.
name | the canonical name of the complexType. |
Referenced by org.exolab.castor.xml.schema.Schema.getComplexType(), and org.exolab.castor.xml.schema.Schema.getComplexTypes().
boolean org.exolab.castor.xml.schema.RedefineSchema.hasGroupRedefinition | ( | String | name | ) |
Returns true if this redefinition contains a redefinition for a group with the given name.
name | the canonical name of the complexType. |
Referenced by org.exolab.castor.xml.schema.Schema.getModelGroup(), and org.exolab.castor.xml.schema.Schema.getModelGroups().
boolean org.exolab.castor.xml.schema.RedefineSchema.hasRedefinition | ( | ) |
Returns true if at least one structure other than an annotation is present.
Referenced by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement().
boolean org.exolab.castor.xml.schema.RedefineSchema.hasSimpleTypeRedefinition | ( | String | name | ) |
Returns true if this redefinition contains a redefinition for a simpleType with the given name.
name | the canonical name of the simpleType. |
Referenced by org.exolab.castor.xml.schema.Schema.getSimpleType(), and org.exolab.castor.xml.schema.Schema.getSimpleTypes().
boolean org.exolab.castor.xml.schema.RedefineSchema.removeAttributeGroup | ( | AttributeGroupDecl | attrGroup | ) |
Removes the attributeGroup with the given name from the redefine structure.
name | the name of the attributeGroup to be removed from this Redefined Structure. |
Referenced by org.exolab.castor.xml.schema.Schema.removeAttributeGroup().
boolean org.exolab.castor.xml.schema.RedefineSchema.removeComplexType | ( | ComplexType | complexType | ) |
Removes the complexType with the given name from the redefine structure.
complexType | The complexType to be removed from this Redefined Structure. |
Referenced by org.exolab.castor.xml.schema.Schema.removeComplexType().
boolean org.exolab.castor.xml.schema.RedefineSchema.removeGroup | ( | ModelGroup | group | ) |
Removes the given ModelGroup from the redefine structure.
group | the ModelGroup to be removed from this Redefined Structure. |
Referenced by org.exolab.castor.xml.schema.Schema.removeGroup().
boolean org.exolab.castor.xml.schema.RedefineSchema.removeSimpleType | ( | SimpleType | simpleType | ) |
Removes the given simpleType from the redefine structure.
simpleType | the simpleType to be removed from this Redefined Structure. |
Referenced by org.exolab.castor.xml.schema.Schema.removeSimpleType().
void org.exolab.castor.xml.schema.RedefineSchema.validate | ( | ) | throws ValidationException [virtual] |
Checks the validity of this Schema defintion.
ValidationException | when this Schema definition is invalid. |
Implements org.exolab.castor.xml.schema.Structure.