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 XSObjectListfAnnotationsXSWildcardDeclfAttributeWCprotected XSObjectListImplfAttrUsesStringfIDAttrNameStringfNameStringfTargetNamespace
-
Constructor Summary
Constructors Constructor Description XSAttributeGroupDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddAttributeUse(XSAttributeUseImpl attrUse)XSAnnotationgetAnnotation()Optional.XSObjectListgetAnnotations()Optional.XSAttributeUsegetAttributeUse(String namespace, String name)XSAttributeUsegetAttributeUseNoProhibited(String namespace, String name)XSObjectListgetAttributeUses(){attribute uses} A set of attribute uses.XSWildcardgetAttributeWildcard(){attribute wildcard} Optional.StringgetName()Thenameof thisXSObjectdepending on theXSObjecttype.StringgetNamespace()The namespace URI of this node, ornullif it is unspecified.XSNamespaceItemgetNamespaceItem()A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.shortgetType()Get the type of the object, i.e ELEMENT_DECLARATION.voidremoveProhibitedAttrs()voidreplaceAttributeUse(XSAttributeUse oldUse, XSAttributeUseImpl newUse)voidreset()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()
Thenameof thisXSObjectdepending on theXSObjecttype.
-
getNamespace
public String getNamespace()
The namespace URI of this node, ornullif it is unspecified. defines how a namespace URI is attached to schema components.- Specified by:
getNamespacein interfaceXSObject
-
getAttributeUses
public XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.- Specified by:
getAttributeUsesin interfaceXSAttributeGroupDefinition
-
getAttributeWildcard
public XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.- Specified by:
getAttributeWildcardin interfaceXSAttributeGroupDefinition
-
getAnnotation
public XSAnnotation getAnnotation()
Optional. Annotation.- Specified by:
getAnnotationin interfaceXSAttributeGroupDefinition
-
getAnnotations
public XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotationsin interfaceXSAttributeGroupDefinition
-
getNamespaceItem
public XSNamespaceItem getNamespaceItem()
Description copied from interface:XSObjectA namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.- Specified by:
getNamespaceItemin interfaceXSObject- See Also:
XSObject.getNamespaceItem()
-
-