This class is a wrapper used to save meta information concerning redefined
structures from an XML schema.
This wrapper is identified by:
- a reference to the schema redefined
- the schema location of the redefined schema
- A vector containing the names of the structures redefined
addAttributeGroup
public void addAttributeGroup(AttributeGroupDecl attrGroup)
throws SchemaException
Adds a AttributeGroup name in the list of redefined attributeGroups.
addComplexType
public void addComplexType(ComplexType complexType)
throws SchemaException
Adds the given complexType in the list of redefined complexTypes.
complexType
- the ComplexType to add.
addSimpleType
public void addSimpleType(SimpleType simpleType)
throws SchemaException
Adds a simpleType in the list of redefined simpleTypes.
simpleType
- the SimpleType to add.
enumerateAttributeGroups
public Enumeration enumerateAttributeGroups()
Enumerates the attributeGroup names.
- an enumeration of the names of the redefined AttributeGroups.
enumerateComplexTypes
public Enumeration enumerateComplexTypes()
Enumerates the complexType names.
- an enumeration of the names of the redefined ComplexTypes
enumerateGroups
public Enumeration enumerateGroups()
Enumerates the group names.
- an enumeration of the names of the redefined groups.
enumerateSimpleTypes
public Enumeration enumerateSimpleTypes()
Enumerates the simpleType names.
- an enumeration of the names of the redefined SimpleTypes.
getAttributeGroup
public AttributeGroupDecl getAttributeGroup(String name)
Returns the AttributeGroup corresponding to the given
canonical name (unqualified name).
- the AttributeGroup corresponding to the given
canonical name (unqualified name).
getComplexType
public ComplexType getComplexType(String name)
Returns the ComplexType corresponding to the given name.
name
- the name of the ComplexType to look for.
- the ComplexType corresponding to the gven name.
getModelGroup
public ModelGroup 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.
- the ModelGroup of the given name contained in this RedefineSchema.
getOriginalSchema
public Schema getOriginalSchema()
Returns the schema imported used for the redefinitions.
- the original schema imported.
getParentSchema
public Schema getParentSchema()
Returns the parent schema in which this RedefineSchema is used.
- the parent schema in which this Redefined Schema
is used.
getSchemaLocation
public String getSchemaLocation()
Returns the URI of the imported schema.
- the URI of the imported schema.
getSimpleType
public SimpleType getSimpleType(String name)
Returns the SimpleType corresponding to the given name.
name
- the name of the SimpleType to look for.
- the SimpleType corresponding to the gven name.
getStructureType
public short getStructureType()
Returns the type of this Redefine Structure
- getStructureType in interface Structure
- the type of this Redefin Structure
hasAttributeGroupRedefinition
public boolean 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.
hasComplexTypeRedefinition
public boolean 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.
hasGroupRedefinition
public boolean 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.
hasRedefinition
public boolean hasRedefinition()
Returns true if at least one structure other than
an annotation is present.
- true if at least one structure other than
an annotation is present.
hasSimpleTypeRedefinition
public boolean 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.
removeAttributeGroup
public boolean removeAttributeGroup(AttributeGroupDecl attrGroup)
Removes the attributeGroup with the given name from the redefine structure.
attrGroup
- the attributeGroup to be removed from this Redefined Structure.
removeComplexType
public boolean removeComplexType(ComplexType complexType)
Removes the complexType with the given name from the redefine structure.
complexType
- The complexType to be removed from this Redefined Structure.
removeGroup
public boolean removeGroup(ModelGroup group)
Removes the given ModelGroup from the redefine structure.
group
- the ModelGroup to be removed from this Redefined Structure.
removeSimpleType
public boolean removeSimpleType(SimpleType simpleType)
Removes the given simpleType from the redefine structure.
simpleType
- the simpleType to be removed from this Redefined Structure.