Package org.exolab.castor.xml.schema
Class AttributeGroup
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.AttributeGroup
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttributeGroupDecl
,AttributeGroupReference
An XML Schema Attribute Group Definition
- Version:
- $Revision$ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
Fields inherited from class org.exolab.castor.xml.schema.Structure
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Wildcard
Returns the anyAttribute set in this attribute group if any.abstract AttributeDecl
getAttribute
(String name) Returns the AttributeDecl associated with the given nameabstract Enumeration
<AttributeDecl> Returns an Enumeration of all the attributes of this attribute group.getId()
Returns the id of this AttributeGroupshort
Returns the type of this Schema Structureabstract boolean
isEmpty()
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroupReferencesvoid
Sets the id of this AttributeGroupvoid
validate()
Checks the validity of this Attribute declarationMethods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
Constructor Details
-
AttributeGroup
public AttributeGroup()
-
-
Method Details
-
getAnyAttribute
Returns the anyAttribute set in this attribute group if any.- Returns:
- the anyAttribute set in this attribute group if any.
-
getAttribute
Returns the AttributeDecl associated with the given name- Returns:
- the AttributeDecl associated with the given name, or null if no AttributeDecl with the given name was found.
-
getAttributes
Returns an Enumeration of all the attributes of this attribute group. The enumeration includes attributes from all AttributeGroupReferences contained in this AttributeGroup.- Returns:
- an Enumeration of all the attributes of this attribute group.
-
getId
Returns the id of this AttributeGroup- Returns:
- the id of this AttributeGroup, or null, if no id was defined.
-
isEmpty
public abstract boolean isEmpty()Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroupReferences- Returns:
- true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroupReferences
-
getStructureType
public short getStructureType()Returns the type of this Schema Structure- Specified by:
getStructureType
in classStructure
- Returns:
- the type of this Schema Structure
-
setId
Sets the id of this AttributeGroup- Parameters:
id
- the id of this AttributeGroup
-
validate
Checks the validity of this Attribute declaration- Specified by:
validate
in classStructure
- Throws:
ValidationException
- when this Attribute declaration is invalid
-