org.apache.xerces.impl.xs

Class XSAttributeGroupDecl

public class XSAttributeGroupDecl extends Object implements XSAttributeGroupDefinition

The XML representation for an attribute group declaration schema component is a global element information item

Version: $Id: XSAttributeGroupDecl.java,v 1.18 2004/10/06 15:14:55 mrglavas Exp $

Author: Sandy Gao, IBM Rahul Srivastava, Sun Microsystems Inc.

UNKNOWN:

Field Summary
XSAnnotationImplfAnnotation
XSWildcardDeclfAttributeWC
protected XSObjectListImplfAttrUses
StringfIDAttrName
StringfName
StringfTargetNamespace
Method Summary
StringaddAttributeUse(XSAttributeUseImpl attrUse)
XSAnnotationgetAnnotation()
Optional.
XSAttributeUsegetAttributeUse(String namespace, String name)
XSObjectListgetAttributeUses()
{attribute uses} A set of attribute uses.
XSWildcardgetAttributeWildcard()
{attribute wildcard} Optional.
StringgetName()
The name of this XSObject depending on the XSObject type.
StringgetNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.
XSNamespaceItemgetNamespaceItem()
shortgetType()
Get the type of the object, i.e ELEMENT_DECLARATION.
voidremoveProhibitedAttrs()
voidreset()
Object[]validRestrictionOf(String typeName, XSAttributeGroupDecl baseGroup)
Check that the attributes in this group validly restrict those from a base group.

Field Detail

fAnnotation

public XSAnnotationImpl fAnnotation

fAttributeWC

public XSWildcardDecl fAttributeWC

fAttrUses

protected XSObjectListImpl fAttrUses

fIDAttrName

public String fIDAttrName

fName

public String fName

fTargetNamespace

public String fTargetNamespace

Method Detail

addAttributeUse

public String addAttributeUse(XSAttributeUseImpl attrUse)

getAnnotation

public XSAnnotation getAnnotation()
Optional. Annotation.

getAttributeUse

public XSAttributeUse getAttributeUse(String namespace, String name)

getAttributeUses

public XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.

getAttributeWildcard

public XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.

getName

public String getName()
The name of this XSObject depending on the XSObject type.

getNamespace

public String getNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

getNamespaceItem

public XSNamespaceItem getNamespaceItem()

See Also: org.apache.xerces.xs.XSObject#getNamespaceItem()

getType

public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.

removeProhibitedAttrs

public void removeProhibitedAttrs()

reset

public void reset()

validRestrictionOf

public Object[] validRestrictionOf(String typeName, XSAttributeGroupDecl baseGroup)
Check that the attributes in this group validly restrict those from a base group. If an error is found, an Object[] is returned. This contains the arguments for the error message describing the error. The last element in the array (at index arr.length - 1) is the the error code. Returns null if there is no error. REVISIT: is there a better way of returning the appropriate information for the error?

Parameters: typeName the name of the type containing this attribute group, used for error reporting purposes baseGroup the XSAttributeGroupDecl that is the base we are checking against

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.