org.apache.xerces.impl.xs

Class XSAttributeGroupDecl

Implemented Interfaces:
org.apache.xerces.xs.XSAttributeGroupDefinition

public class XSAttributeGroupDecl
extends java.lang.Object
implements org.apache.xerces.xs.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 $
Authors:
Sandy Gao, IBM
Rahul Srivastava, Sun Microsystems Inc.

Field Summary

XSAnnotationImpl
fAnnotation
protected XSObjectListImpl
fAttrUses
XSWildcardDecl
fAttributeWC
String
fIDAttrName
String
fName
String
fTargetNamespace

Method Summary

String
addAttributeUse(XSAttributeUseImpl attrUse)
org.apache.xerces.xs.XSAnnotation
getAnnotation()
Optional.
org.apache.xerces.xs.XSAttributeUse
getAttributeUse(String namespace, String name)
org.apache.xerces.xs.XSObjectList
getAttributeUses()
{attribute uses} A set of attribute uses.
org.apache.xerces.xs.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.
org.apache.xerces.xs.XSNamespaceItem
getNamespaceItem()
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.

Field Details

fAnnotation

public XSAnnotationImpl fAnnotation

fAttrUses

protected XSObjectListImpl fAttrUses

fAttributeWC

public XSWildcardDecl fAttributeWC

fIDAttrName

public String fIDAttrName

fName

public String fName

fTargetNamespace

public String fTargetNamespace

Method Details

addAttributeUse

public String addAttributeUse(XSAttributeUseImpl attrUse)

getAnnotation

public org.apache.xerces.xs.XSAnnotation getAnnotation()
Optional. Annotation.
Specified by:
getAnnotation in interface org.apache.xerces.xs.XSAttributeGroupDefinition

getAttributeUse

public org.apache.xerces.xs.XSAttributeUse getAttributeUse(String namespace,
                                                           String name)

getAttributeUses

public org.apache.xerces.xs.XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.
Specified by:
getAttributeUses in interface org.apache.xerces.xs.XSAttributeGroupDefinition

getAttributeWildcard

public org.apache.xerces.xs.XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.
Specified by:
getAttributeWildcard in interface org.apache.xerces.xs.XSAttributeGroupDefinition

getName

public String getName()
The name of this XSObject depending on the XSObject type.
Specified by:
getName in interface org.apache.xerces.xs.XSObject

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.
Specified by:
getNamespace in interface org.apache.xerces.xs.XSObject

getNamespaceItem

public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
Specified by:
getNamespaceItem in interface org.apache.xerces.xs.XSObject
See Also:
org.apache.xerces.xs.XSObject.getNamespaceItem()

getType

public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
Specified by:
getType in interface org.apache.xerces.xs.XSObject

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.