org.exolab.castor.xml.schema

Class AttributeGroupReference

public final class AttributeGroupReference extends AttributeGroup

An XML Schema Attribute Group Definition

Version: $Revision: 5951 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $

Author: Keith Visco

Constructor Summary
AttributeGroupReference(Schema schema, String reference)
Creates a new AttributeGroup definition
Method Summary
WildcardgetAnyAttribute()
Returns the anyAttribute set in this attribute group if any.
AttributeDeclgetAttribute(String name)
Returns the AttributeDecl associated with the given name
EnumerationgetAttributes()
Returns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup
StringgetReference()
Gets the name of the attribute group this class refers to.
booleanisEmpty()
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups
AttributeGroupresolveReference()
Resolves the attribute group reference

Constructor Detail

AttributeGroupReference

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

Parameters: schema the Schema that this AttributeGroup belongs to.

Method Detail

getAnyAttribute

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

Returns: the anyAttribute set in this attribute group if any.

getAttribute

public AttributeDecl getAttribute(String name)
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

public Enumeration getAttributes()
Returns an enumeration of the AttributeDecls and AttributeGroups of this 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

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-2006. All rights reserved http://www.intalio.com