org.exolab.castor.xml.schema
Class AttributeGroupReference
- java.io.Serializable
public final class AttributeGroupReference
An XML Schema Attribute Group Definition
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:28 $
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 |
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
|
AttributeGroupReference
public AttributeGroupReference(Schema schema,
String reference)
Creates a new AttributeGroup definition
schema
- the Schema that this AttributeGroup
belongs to.
getAnyAttribute
public Wildcard getAnyAttribute()
Returns the anyAttribute set in this attribute group if any.
- getAnyAttribute in interface AttributeGroup
- the anyAttribute set in this attribute group if any.
getAttribute
public AttributeDecl getAttribute(String name)
Returns the AttributeDecl associated with the given name
- getAttribute in interface AttributeGroup
- 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
- getAttributes in interface AttributeGroup
- 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
- isEmpty in interface AttributeGroup
- true if this AttributeGroup does not contain any
AttributeDecls or any non-empty AttributeGroups
resolveReference
public AttributeGroup resolveReference()
Resolves the attribute group reference
- 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