Top Description Fields Constructors Methods
org.apache.xerces.impl.xs

public Class XSAttributeGroupDecl

extends Object
implements XSAttributeGroupDefinition
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xs.XSAttributeGroupDefinition, org.apache.xerces.xs.XSObject
Imports
org.apache.xerces.impl.dv.ValidatedInfo, org.apache.xerces.impl.xs.util.XSObjectListImpl, org.apache.xerces.xs.XSAnnotation, .XSAttributeGroupDefinition, .XSAttributeUse, .XSConstants, .XSNamespaceItem, .XSObjectList, .XSWildcard

The XML representation for an attribute group declaration schema component is a global <attributeGroup> element information item
Authors
Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.
Version
$Id: XSAttributeGroupDecl.java 1051303 2010-12-20 22:14:58Z mrglavas $

Field Summary

Modifier and TypeField and Description
public XSObjectList
pack-priv XSAttributeUseImpl[]
public XSWildcardDecl
pack-priv int
protected XSObjectListImpl
public String
public String
private XSNamespaceItem
public String
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public XSAnnotation
public XSObjectList
public XSAttributeUse
getAttributeUse(String namespace, String name)

public XSAttributeUse
public XSObjectList
getAttributeUses()

Implements org.apache.xerces.xs.XSAttributeGroupDefinition.getAttributeUses.

{attribute uses} A set of attribute uses.
public XSWildcard
public String
getName()

Implements org.apache.xerces.xs.XSObject.getName.

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

Implements org.apache.xerces.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified.
public XSNamespaceItem
getNamespaceItem()

Implements org.apache.xerces.xs.XSObject.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()

Implements org.apache.xerces.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.
public void
public void
public void
pack-priv static final XSAttributeUseImpl[]
resize(XSAttributeUseImpl[] oldArray, int newSize)

pack-priv void
public Object[]
validRestrictionOf(String
the name of the type containing this attribute group, used for error reporting purposes
typeName
,
XSAttributeGroupDecl
the XSAttributeGroupDecl that is the base we are checking against
baseGroup
)

Check that the attributes in this group validly restrict those from a base group.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fAnnotationsback to summary
public XSObjectList fAnnotations
fAttributeUsesback to summary
pack-priv XSAttributeUseImpl[] fAttributeUses
fAttributeWCback to summary
public XSWildcardDecl fAttributeWC
fAttrUseNumback to summary
pack-priv int fAttrUseNum
fAttrUsesback to summary
protected XSObjectListImpl fAttrUses
fIDAttrNameback to summary
public String fIDAttrName
fNameback to summary
public String fName
fNamespaceItemback to summary
private XSNamespaceItem fNamespaceItem
fTargetNamespaceback to summary
public String fTargetNamespace
INITIAL_SIZEback to summary
private static final int INITIAL_SIZE

Constructor Detail

XSAttributeGroupDeclback to summary
public XSAttributeGroupDecl()

Method Detail

addAttributeUseback to summary
public String addAttributeUse(XSAttributeUseImpl attrUse)
getAnnotationback to summary
public XSAnnotation getAnnotation()

Implements org.apache.xerces.xs.XSAttributeGroupDefinition.getAnnotation.

Optional. Annotation.

getAnnotationsback to summary
public XSObjectList getAnnotations()

Implements org.apache.xerces.xs.XSAttributeGroupDefinition.getAnnotations.

Optional. Annotations.

getAttributeUseback to summary
public XSAttributeUse getAttributeUse(String namespace, String name)
getAttributeUseNoProhibitedback to summary
public XSAttributeUse getAttributeUseNoProhibited(String namespace, String name)
getAttributeUsesback to summary
public XSObjectList getAttributeUses()

Implements org.apache.xerces.xs.XSAttributeGroupDefinition.getAttributeUses.

{attribute uses} A set of attribute uses.

getAttributeWildcardback to summary
public XSWildcard getAttributeWildcard()

Implements org.apache.xerces.xs.XSAttributeGroupDefinition.getAttributeWildcard.

{attribute wildcard} Optional. A wildcard.

getNameback to summary
public String getName()

Implements org.apache.xerces.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

getNamespaceback to summary
public String getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

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

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements org.apache.xerces.xs.XSObject.getNamespaceItem.

Doc from org.apache.xerces.xs.XSObject.getNamespaceItem.

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

See Also
org.apache.xerces.xs.XSObject#getNamespaceItem()
getTypeback to summary
public short getType()

Implements org.apache.xerces.xs.XSObject.getType.

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

removeProhibitedAttrsback to summary
public void removeProhibitedAttrs()
replaceAttributeUseback to summary
public void replaceAttributeUse(XSAttributeUse oldUse, XSAttributeUseImpl newUse)
resetback to summary
public void reset()
resizeback to summary
pack-priv static final XSAttributeUseImpl[] resize(XSAttributeUseImpl[] oldArray, int newSize)
setNamespaceItemback to summary
pack-priv void setNamespaceItem(XSNamespaceItem namespaceItem)
validRestrictionOfback to summary
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:String

the name of the type containing this attribute group, used for error reporting purposes

baseGroup:XSAttributeGroupDecl

the XSAttributeGroupDecl that is the base we are checking against