org.exolab.castor.xml.schema

Class AttributeGroup

public abstract class AttributeGroup extends Annotated

An XML Schema Attribute Group Definition

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

Author: Keith Visco

Method Summary
abstract WildcardgetAnyAttribute()
Returns the anyAttribute set in this attribute group if any.
abstract AttributeDeclgetAttribute(String name)
Returns the AttributeDecl associated with the given name
abstract EnumerationgetAttributes()
Returns an Enumeration of all the attributes of this attribute group.
StringgetId()
Returns the id of this AttributeGroup
shortgetStructureType()
Returns the type of this Schema Structure
abstract booleanisEmpty()
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroupReferences
voidsetId(String id)
Sets the id of this AttributeGroup
voidvalidate()
Checks the validity of this Attribute declaration

Method Detail

getAnyAttribute

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

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

getAttribute

public abstract 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 abstract Enumeration 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

public String getId()
Returns the id of this AttributeGroup

Returns: the id of this AttributeGroup, or null, if no id was defined.

getStructureType

public short getStructureType()
Returns the type of this Schema Structure

Returns: the type of this Schema Structure

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

setId

public void setId(String id)
Sets the id of this AttributeGroup

Parameters: id the id of this AttributeGroup

validate

public void validate()
Checks the validity of this Attribute declaration

Throws: ValidationException when this Attribute declaration is invalid

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