Public Member Functions | |
AttributeGroupDecl (Schema schema) | |
void | addAttribute (AttributeDecl attrDecl) |
void | addReference (AttributeGroupReference attrGroup) |
Enumeration | getLocalAttributes () |
Enumeration | getLocalAttributeGroupReferences () |
Wildcard | getAnyAttribute () |
AttributeDecl | getAttribute (String name) |
Enumeration | getAttributes () |
String | getName () |
Schema | getSchema () |
boolean | isEmpty () |
boolean | isRedefined () |
boolean | removeAttribute (AttributeDecl attr) |
boolean | removeReference (AttributeGroupReference attrGroupReference) |
void | setAnyAttribute (Wildcard wildcard) throws SchemaException |
void | setName (String name) |
void | setRedefined () |
short | getStructureType () |
void | validate () throws ValidationException |
An XML Schema Attribute Group Definition
org.exolab.castor.xml.schema.AttributeGroupDecl.AttributeGroupDecl | ( | Schema | schema | ) |
Creates a new AttributeGroup definition
schema | the Schema that this AttributeGroup belongs to. |
void org.exolab.castor.xml.schema.AttributeGroupDecl.addAttribute | ( | AttributeDecl | attrDecl | ) |
Adds the given attribute definition to this AttributeGroup
attrDecl | the AttributeDecl to add |
References org.exolab.castor.xml.schema.AttributeDecl.setParent().
Referenced by org.exolab.castor.xml.schema.ComplexType.addAttributeDecl().
void org.exolab.castor.xml.schema.AttributeGroupDecl.addReference | ( | AttributeGroupReference | attrGroup | ) |
Adds the given AttributeGroupReference to this AttributeGroup
attrGroup | the AttributeGroupReference to add |
Referenced by org.exolab.castor.xml.schema.ComplexType.addAttributeGroupReference().
Wildcard org.exolab.castor.xml.schema.AttributeGroupDecl.getAnyAttribute | ( | ) | [virtual] |
Returns the wilcard used in this complexType (can be null)
Implements org.exolab.castor.xml.schema.AttributeGroup.
AttributeDecl org.exolab.castor.xml.schema.AttributeGroupDecl.getAttribute | ( | String | name | ) | [virtual] |
Returns the AttributeDecl associated with the given name
Implements org.exolab.castor.xml.schema.AttributeGroup.
References org.exolab.castor.xml.schema.AttributeGroupReference.getAttribute(), and org.exolab.castor.xml.schema.AttributeDecl.getName().
Referenced by org.exolab.castor.xml.schema.ComplexType.getAttributeDecl().
Enumeration org.exolab.castor.xml.schema.AttributeGroupDecl.getAttributes | ( | ) | [virtual] |
Returns an Enumeration of all the attributes of this attribute group. The enumeration includes attributes from all AttributeGroupReferences contained in this AttributeGroup.
Implements org.exolab.castor.xml.schema.AttributeGroup.
Referenced by org.exolab.castor.xml.schema.ComplexType.getAttributeDecls().
Enumeration org.exolab.castor.xml.schema.AttributeGroupDecl.getLocalAttributeGroupReferences | ( | ) |
Returns the AttributeGroupReference of THIS attribute group. (not those of the nested groups)
Referenced by org.exolab.castor.xml.schema.ComplexType.getAttributeGroupReferences().
Enumeration org.exolab.castor.xml.schema.AttributeGroupDecl.getLocalAttributes | ( | ) |
Returns the attributes of THIS attribute group. (not those of the nested groups)
Referenced by org.exolab.castor.xml.schema.ComplexType.getLocalAttributeDecls().
String org.exolab.castor.xml.schema.AttributeGroupDecl.getName | ( | ) |
Returns the name of this AttributeGroup
Referenced by org.exolab.castor.xml.schema.Schema.removeAttributeGroup(), and org.exolab.castor.xml.schema.AttributeGroupDecl.setAnyAttribute().
Schema org.exolab.castor.xml.schema.AttributeGroupDecl.getSchema | ( | ) |
Returns the Schema that this AttributeGroupDecl belongs to.
short org.exolab.castor.xml.schema.AttributeGroupDecl.getStructureType | ( | ) | [virtual] |
Returns the type of this Schema Structure
Reimplemented from org.exolab.castor.xml.schema.AttributeGroup.
boolean org.exolab.castor.xml.schema.AttributeGroupDecl.isEmpty | ( | ) | [virtual] |
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups
Implements org.exolab.castor.xml.schema.AttributeGroup.
boolean org.exolab.castor.xml.schema.AttributeGroupDecl.isRedefined | ( | ) |
Returns true if this attributeGroupDecl is a redefinition.
boolean org.exolab.castor.xml.schema.AttributeGroupDecl.removeAttribute | ( | AttributeDecl | attr | ) |
Removes the given AttributeDecl from this AttributeGroup.
attr | the attribute to remove. |
Referenced by org.exolab.castor.xml.schema.ComplexType.removeAttributeDecl().
boolean org.exolab.castor.xml.schema.AttributeGroupDecl.removeReference | ( | AttributeGroupReference | attrGroupReference | ) |
Removes the given AttributeGroupReference from this AttributeGroup.
attrGroup | the AttributeGroupReference to remove. |
Referenced by org.exolab.castor.xml.schema.ComplexType.removeAttributeGroupReference().
void org.exolab.castor.xml.schema.AttributeGroupDecl.setAnyAttribute | ( | Wildcard | wildcard | ) | throws SchemaException |
Sets the wildcard (anyAttribute) of this attribute Group
SchemaException | thrown when a wildcard as already be set or when the wildCard is not an <anyAttribute>. |
References org.exolab.castor.xml.schema.AttributeGroupDecl.getName().
void org.exolab.castor.xml.schema.AttributeGroupDecl.setName | ( | String | name | ) |
Sets the name of this AttributeGroup
name | the name of this AttributeGroup |
Referenced by org.exolab.castor.xml.schema.reader.AttributeGroupUnmarshaller.AttributeGroupUnmarshaller().
void org.exolab.castor.xml.schema.AttributeGroupDecl.setRedefined | ( | ) |
Sets this Group has redefined.
Referenced by org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement().
void org.exolab.castor.xml.schema.AttributeGroupDecl.validate | ( | ) | throws ValidationException [virtual] |
Checks the validity of this Attribute declaration
ValidationException | when this Attribute declaration is invalid |
Reimplemented from org.exolab.castor.xml.schema.AttributeGroup.
Referenced by org.exolab.castor.xml.schema.ComplexType.validate().