org.exolab.castor.xml.schema

Class AttributeGroupReference

Implemented Interfaces:
java.io.Serializable

public final class AttributeGroupReference
extends AttributeGroup

An XML Schema Attribute Group Definition
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:28 $
Author:
Keith Visco
See Also:
Serialized Form

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

AttributeGroupReference(Schema schema, String reference)
Creates a new AttributeGroup definition

Method Summary

Wildcard
getAnyAttribute()
Returns the anyAttribute set in this attribute group if any.
AttributeDecl
getAttribute(String name)
Returns the AttributeDecl associated with the given name
Enumeration
getAttributes()
Returns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup
String
getReference()
Gets 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 AttributeGroups
AttributeGroup
resolveReference()
Resolves the attribute group reference

Methods inherited from class org.exolab.castor.xml.schema.AttributeGroup

getAnyAttribute, getAttribute, getAttributes, getId, getStructureType, isEmpty, setId, validate

Methods inherited from class org.exolab.castor.xml.schema.Annotated

addAnnotation, getAnnotations, removeAnnotation

Methods inherited from class org.exolab.castor.xml.schema.Structure

getStructureType, isValid, validate

Constructor Details

AttributeGroupReference

public AttributeGroupReference(Schema schema,
                               String reference)
Creates a new AttributeGroup definition
Parameters:
schema - the Schema that this AttributeGroup belongs to.

Method Details

getAnyAttribute

public Wildcard getAnyAttribute()
Returns the anyAttribute set in this attribute group if any.
Overrides:
getAnyAttribute in interface AttributeGroup
Returns:
the anyAttribute set in this attribute group if any.

getAttribute

public AttributeDecl getAttribute(String name)
Returns the AttributeDecl associated with the given name
Overrides:
getAttribute in interface AttributeGroup
Returns:
the AttributeDecl associated with the given name, or null if no AttributeDecl with the given name was found.

getAttributes

public Enumeration getAttributes()
Returns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup
Overrides:
getAttributes in interface AttributeGroup
Returns:
an Enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup

getReference

public String getReference()
Gets the name of the attribute group this class refers to.

isEmpty

public boolean isEmpty()
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups
Overrides:
isEmpty in interface AttributeGroup
Returns:
true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups

resolveReference

public AttributeGroup resolveReference()
Resolves the attribute group reference
Returns:
the attribute group defined at the schema level that is refered to by this class.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com