Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs

public Class XSAttributeGroupDecl

extends Object
implements XSAttributeGroupDefinition
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition, com.sun.org.apache.xerces.internal.xs.XSObject
Imports
com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo, com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl, com.sun.org.apache.xerces.internal.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.

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
public XSWildcard
public String
getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

public String
getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified.

public XSNamespaceItem
getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition.getAnnotation.

Optional. Annotation.

getAnnotationsback to summary
public XSObjectList getAnnotations()

Implements com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition.getAttributeUses.

{attribute uses} A set of attribute uses.

getAttributeWildcardback to summary
public XSWildcard getAttributeWildcard()

Implements com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition.getAttributeWildcard.

{attribute wildcard} Optional. A wildcard.

getNameback to summary
public String getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

getNamespaceback to summary
public String getNamespace()

Implements com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

Doc from com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.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