Package org.exolab.castor.xml.schema
Class AttributeGroupReference
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.AttributeGroup
org.exolab.castor.xml.schema.AttributeGroupReference
- All Implemented Interfaces:
Serializable
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
ConstructorsConstructorDescriptionAttributeGroupReference
(Schema schema, String reference) Creates a new AttributeGroup definition -
Method Summary
Modifier and TypeMethodDescriptionReturns the anyAttribute set in this attribute group if any.getAttribute
(String name) Returns the AttributeDecl associated with the given nameReturns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroupGets the name of the attribute group this class refers to.boolean
isEmpty()
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroupsResolves the attribute group referenceMethods inherited from class org.exolab.castor.xml.schema.AttributeGroup
getId, getStructureType, setId, validate
Methods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
Constructor Details
-
AttributeGroupReference
-
-
Method Details
-
getAnyAttribute
Returns the anyAttribute set in this attribute group if any.- Specified by:
getAnyAttribute
in classAttributeGroup
- Returns:
- the anyAttribute set in this attribute group if any.
-
getReference
Gets the name of the attribute group this class refers to. -
resolveReference
Resolves the attribute group reference- Returns:
- the attribute group defined at the schema level that is refered to by this class.
-
getAttribute
Returns the AttributeDecl associated with the given name- Specified by:
getAttribute
in classAttributeGroup
- Returns:
- the AttributeDecl associated with the given name, or null if no AttributeDecl with the given name was found.
-
getAttributes
Returns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup- Specified by:
getAttributes
in classAttributeGroup
- Returns:
- an Enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup
-
isEmpty
public boolean isEmpty()Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups- Specified by:
isEmpty
in classAttributeGroup
- Returns:
- true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups
-