public class

XSAttributeGroupDecl

extends Object
implements XSAttributeGroupDefinition
java.lang.Object
   ↳ org.apache.xerces.impl.xs.XSAttributeGroupDecl

Class Overview

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

Summary

Fields
public XSObjectList fAnnotations
protected XSObjectListImpl fAttrUses
public XSWildcardDecl fAttributeWC
public String fIDAttrName
public String fName
public String fTargetNamespace
Public Constructors
XSAttributeGroupDecl()
Public Methods
String addAttributeUse(XSAttributeUseImpl attrUse)
XSAnnotation getAnnotation()
Optional.
XSObjectList getAnnotations()
Optional.
XSAttributeUse getAttributeUse(String namespace, String name)
XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.
XSWildcard getAttributeWildcard()
{attribute wildcard} Optional.
String getName()
The name of this XSObject depending on the XSObject type.
String getNamespace()
The namespace URI of this node, or null if it is unspecified.
XSNamespaceItem getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.
short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
void removeProhibitedAttrs()
void reset()
Object[] validRestrictionOf(String typeName, XSAttributeGroupDecl baseGroup)
Check that the attributes in this group validly restrict those from a base group.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xs.XSAttributeGroupDefinition
From interface org.apache.xerces.xs.XSObject

Fields

public XSObjectList fAnnotations

protected XSObjectListImpl fAttrUses

public XSWildcardDecl fAttributeWC

public String fIDAttrName

public String fName

public String fTargetNamespace

Public Constructors

public XSAttributeGroupDecl ()

Public Methods

public String addAttributeUse (XSAttributeUseImpl attrUse)

public XSAnnotation getAnnotation ()

Optional. Annotation.

public XSObjectList getAnnotations ()

Optional. Annotations.

public XSAttributeUse getAttributeUse (String namespace, String name)

public XSObjectList getAttributeUses ()

{attribute uses} A set of attribute uses.

public XSWildcard getAttributeWildcard ()

{attribute wildcard} Optional. A wildcard.

public String getName ()

The name of this XSObject depending on the XSObject type.

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.

public XSNamespaceItem getNamespaceItem ()

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

public short getType ()

Get the type of the object, i.e ELEMENT_DECLARATION.

public void removeProhibitedAttrs ()

public void reset ()

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