Classes | Public Member Functions

org.exolab.castor.xml.schema.RedefineSchema Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.RedefineSchema:
org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Classes

class  EmptyEnumeration

Public Member Functions

 RedefineSchema (Schema parentSchema)
 RedefineSchema (Schema parentSchema, Schema originalSchema)
void addComplexType (ComplexType complexType) throws SchemaException
Enumeration enumerateComplexTypes ()
ComplexType getComplexType (String name)
boolean hasComplexTypeRedefinition (String name)
boolean removeComplexType (ComplexType complexType)
void addSimpleType (SimpleType simpleType) throws SchemaException
Enumeration enumerateSimpleTypes ()
SimpleType getSimpleType (String name)
boolean hasSimpleTypeRedefinition (String name)
boolean removeSimpleType (SimpleType simpleType)
void addGroup (ModelGroup group) throws SchemaException
ModelGroup getModelGroup (String name)
Enumeration enumerateGroups ()
boolean hasGroupRedefinition (String name)
boolean removeGroup (ModelGroup group)
void addAttributeGroup (AttributeGroupDecl attrGroup) throws SchemaException
AttributeGroupDecl getAttributeGroup (String name)
Enumeration enumerateAttributeGroups ()
boolean hasAttributeGroupRedefinition (String name)
boolean removeAttributeGroup (AttributeGroupDecl attrGroup)
boolean hasRedefinition ()
String getSchemaLocation ()
Schema getOriginalSchema ()
Schema getParentSchema ()
short getStructureType ()
void validate () throws ValidationException

Detailed Description

This class is a wrapper used to save meta information concerning redefined structures from an XML schema.

This wrapper is identified by:

Author:
Arnaud Blandin
Version:
Revision:
1.1
Date:
2004/09/21 14:04:29

Constructor & Destructor Documentation

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

Parameters:
uri the URI identifying the Schema

References org.exolab.castor.xml.schema.Schema.getSchemaLocation().


Member Function Documentation

void org.exolab.castor.xml.schema.RedefineSchema.addAttributeGroup ( AttributeGroupDecl  attrGroup  )  throws SchemaException
void org.exolab.castor.xml.schema.RedefineSchema.addComplexType ( ComplexType  complexType  )  throws SchemaException

Adds the given complexType in the list of redefined complexTypes.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Returns:
an enumeration of the names of the redefined AttributeGroups.

Referenced by org.exolab.castor.xml.schema.Schema.getAttributeGroups().

Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateComplexTypes (  ) 

Enumerates the complexType names.

Returns:
an enumeration of the names of the redefined ComplexTypes

Referenced by org.exolab.castor.xml.schema.Schema.getComplexTypes().

Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateGroups (  ) 

Enumerates the group names.

Returns:
an enumeration of the names of the redefined groups.

Referenced by org.exolab.castor.xml.schema.Schema.getModelGroups().

Enumeration org.exolab.castor.xml.schema.RedefineSchema.enumerateSimpleTypes (  ) 

Enumerates the simpleType names.

Returns:
an enumeration of the names of the redefined SimpleTypes.

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).

Returns:
he 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.

Parameters:
name the name of the ComplexType to look for.
Returns:
the ComplexType corresponding to the gven name.

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.

Parameters:
name the name of the ModelGroup to retrieve.
Returns:
the ModelGroup of the given name contained in this RedefineSchema.

Referenced by org.exolab.castor.xml.schema.RedefineSchema.addGroup(), and org.exolab.castor.xml.schema.Schema.getModelGroup().

Schema org.exolab.castor.xml.schema.RedefineSchema.getParentSchema (  ) 

Returns the parent schema in which this RedefineSchema is used.

Returns:
the parent schema in which this Redefined Schema is used.
String org.exolab.castor.xml.schema.RedefineSchema.getSchemaLocation (  ) 
SimpleType org.exolab.castor.xml.schema.RedefineSchema.getSimpleType ( String  name  ) 

Returns the SimpleType corresponding to the given name.

Parameters:
name the name of the SimpleType to look for.
Returns:
the SimpleType corresponding to the gven name.

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

Returns:
the type of this Redefin 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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Exceptions:
ValidationException when this Schema definition is invalid.

Implements org.exolab.castor.xml.schema.Structure.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties