Package org.apache.xerces.impl.xs
Class XSAttributeGroupDecl
java.lang.Object
org.apache.xerces.impl.xs.XSAttributeGroupDecl
- All Implemented Interfaces:
org.apache.xerces.xs.XSAttributeGroupDefinition
,org.apache.xerces.xs.XSObject
public class XSAttributeGroupDecl
extends Object
implements org.apache.xerces.xs.XSAttributeGroupDefinition
The XML representation for an attribute group declaration
schema component is a global <attributeGroup> element information item
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: XSAttributeGroupDecl.java 1051303 2010-12-20 22:14:58Z mrglavas $
- Author:
- Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeUse
(XSAttributeUseImpl attrUse) org.apache.xerces.xs.XSAnnotation
Optional.org.apache.xerces.xs.XSObjectList
Optional.org.apache.xerces.xs.XSAttributeUse
getAttributeUse
(String namespace, String name) org.apache.xerces.xs.XSAttributeUse
getAttributeUseNoProhibited
(String namespace, String name) org.apache.xerces.xs.XSObjectList
{attribute uses} A set of attribute uses.org.apache.xerces.xs.XSWildcard
{attribute wildcard} Optional.getName()
Thename
of thisXSObject
depending on theXSObject
type.The namespace URI of this node, ornull
if it is unspecified.org.apache.xerces.xs.XSNamespaceItem
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornull
otherwise.short
getType()
Get the type of the object, i.e ELEMENT_DECLARATION.void
void
replaceAttributeUse
(org.apache.xerces.xs.XSAttributeUse oldUse, XSAttributeUseImpl newUse) void
reset()
Object[]
validRestrictionOf
(String typeName, XSAttributeGroupDecl baseGroup) Check that the attributes in this group validly restrict those from a base group.
-
Field Details
-
fName
-
fTargetNamespace
-
fAttributeWC
-
fIDAttrName
-
fAnnotations
public org.apache.xerces.xs.XSObjectList fAnnotations -
fAttrUses
-
-
Constructor Details
-
XSAttributeGroupDecl
public XSAttributeGroupDecl()
-
-
Method Details
-
addAttributeUse
-
replaceAttributeUse
public void replaceAttributeUse(org.apache.xerces.xs.XSAttributeUse oldUse, XSAttributeUseImpl newUse) -
getAttributeUse
-
getAttributeUseNoProhibited
-
removeProhibitedAttrs
public void removeProhibitedAttrs() -
validRestrictionOf
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 purposesbaseGroup
- the XSAttributeGroupDecl that is the base we are checking against
-
reset
public void reset() -
getType
public short getType()Get the type of the object, i.e ELEMENT_DECLARATION.- Specified by:
getType
in interfaceorg.apache.xerces.xs.XSObject
-
getName
Thename
of thisXSObject
depending on theXSObject
type.- Specified by:
getName
in interfaceorg.apache.xerces.xs.XSObject
-
getNamespace
The namespace URI of this node, ornull
if it is unspecified. defines how a namespace URI is attached to schema components.- Specified by:
getNamespace
in interfaceorg.apache.xerces.xs.XSObject
-
getAttributeUses
public org.apache.xerces.xs.XSObjectList getAttributeUses(){attribute uses} A set of attribute uses.- Specified by:
getAttributeUses
in interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getAttributeWildcard
public org.apache.xerces.xs.XSWildcard getAttributeWildcard(){attribute wildcard} Optional. A wildcard.- Specified by:
getAttributeWildcard
in interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getAnnotation
public org.apache.xerces.xs.XSAnnotation getAnnotation()Optional. Annotation.- Specified by:
getAnnotation
in interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()Optional. Annotations.- Specified by:
getAnnotations
in interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()Description copied from interface:org.apache.xerces.xs.XSObject
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornull
otherwise.- Specified by:
getNamespaceItem
in interfaceorg.apache.xerces.xs.XSObject
- See Also:
-