Class XSAttributeGroupDecl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XSAttributeGroupDecl
-
- All Implemented Interfaces:
XSAttributeGroupDefinition
,XSObject
public class XSAttributeGroupDecl extends Object implements XSAttributeGroupDefinition
The XML representation for an attribute group declaration schema component is a global <attributeGroup> element information item- Version:
- $Id$
- Author:
- Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.
-
-
Field Summary
Fields Modifier and Type Field Description XSObjectList
fAnnotations
XSWildcardDecl
fAttributeWC
protected XSObjectListImpl
fAttrUses
String
fIDAttrName
String
fName
String
fTargetNamespace
-
Constructor Summary
Constructors Constructor Description XSAttributeGroupDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addAttributeUse(XSAttributeUseImpl attrUse)
XSAnnotation
getAnnotation()
Optional.XSObjectList
getAnnotations()
Optional.XSAttributeUse
getAttributeUse(String namespace, String name)
XSAttributeUse
getAttributeUseNoProhibited(String namespace, String name)
XSObjectList
getAttributeUses()
{attribute uses} A set of attribute uses.XSWildcard
getAttributeWildcard()
{attribute wildcard} Optional.String
getName()
Thename
of thisXSObject
depending on theXSObject
type.String
getNamespace()
The namespace URI of this node, ornull
if it is unspecified.XSNamespaceItem
getNamespaceItem()
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
removeProhibitedAttrs()
void
replaceAttributeUse(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 Detail
-
fName
public String fName
-
fTargetNamespace
public String fTargetNamespace
-
fAttributeWC
public XSWildcardDecl fAttributeWC
-
fIDAttrName
public String fIDAttrName
-
fAnnotations
public XSObjectList fAnnotations
-
fAttrUses
protected XSObjectListImpl fAttrUses
-
-
Method Detail
-
addAttributeUse
public String addAttributeUse(XSAttributeUseImpl attrUse)
-
replaceAttributeUse
public void replaceAttributeUse(XSAttributeUse oldUse, XSAttributeUseImpl newUse)
-
getAttributeUse
public XSAttributeUse getAttributeUse(String namespace, String name)
-
getAttributeUseNoProhibited
public XSAttributeUse getAttributeUseNoProhibited(String namespace, String name)
-
removeProhibitedAttrs
public void removeProhibitedAttrs()
-
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 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.
-
getName
public String getName()
Thename
of thisXSObject
depending on theXSObject
type.
-
getNamespace
public String 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 interfaceXSObject
-
getAttributeUses
public XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.- Specified by:
getAttributeUses
in interfaceXSAttributeGroupDefinition
-
getAttributeWildcard
public XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.- Specified by:
getAttributeWildcard
in interfaceXSAttributeGroupDefinition
-
getAnnotation
public XSAnnotation getAnnotation()
Optional. Annotation.- Specified by:
getAnnotation
in interfaceXSAttributeGroupDefinition
-
getAnnotations
public XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotations
in interfaceXSAttributeGroupDefinition
-
getNamespaceItem
public XSNamespaceItem getNamespaceItem()
Description copied from interface: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 interfaceXSObject
- See Also:
XSObject.getNamespaceItem()
-
-