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 java.lang.Object implements org.apache.xerces.xs.XSAttributeGroupDefinitionThe XML representation for an attribute group declaration schema component is a global <attributeGroup> element information itemINTERNAL:
- 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 Modifier and Type Field Description org.apache.xerces.xs.XSObjectListfAnnotationsXSWildcardDeclfAttributeWCprotected XSObjectListImplfAttrUsesjava.lang.StringfIDAttrNamejava.lang.StringfNamejava.lang.StringfTargetNamespace
-
Constructor Summary
Constructors Constructor Description XSAttributeGroupDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddAttributeUse(XSAttributeUseImpl attrUse)org.apache.xerces.xs.XSAnnotationgetAnnotation()Optional.org.apache.xerces.xs.XSObjectListgetAnnotations()Optional.org.apache.xerces.xs.XSAttributeUsegetAttributeUse(java.lang.String namespace, java.lang.String name)org.apache.xerces.xs.XSAttributeUsegetAttributeUseNoProhibited(java.lang.String namespace, java.lang.String name)org.apache.xerces.xs.XSObjectListgetAttributeUses(){attribute uses} A set of attribute uses.org.apache.xerces.xs.XSWildcardgetAttributeWildcard(){attribute wildcard} Optional.java.lang.StringgetName()Thenameof thisXSObjectdepending on theXSObjecttype.java.lang.StringgetNamespace()The namespace URI of this node, ornullif it is unspecified.org.apache.xerces.xs.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(org.apache.xerces.xs.XSAttributeUse oldUse, XSAttributeUseImpl newUse)voidreset()java.lang.Object[]validRestrictionOf(java.lang.String typeName, XSAttributeGroupDecl baseGroup)Check that the attributes in this group validly restrict those from a base group.
-
-
-
Field Detail
-
fName
public java.lang.String fName
-
fTargetNamespace
public java.lang.String fTargetNamespace
-
fAttributeWC
public XSWildcardDecl fAttributeWC
-
fIDAttrName
public java.lang.String fIDAttrName
-
fAnnotations
public org.apache.xerces.xs.XSObjectList fAnnotations
-
fAttrUses
protected XSObjectListImpl fAttrUses
-
-
Method Detail
-
addAttributeUse
public java.lang.String addAttributeUse(XSAttributeUseImpl attrUse)
-
replaceAttributeUse
public void replaceAttributeUse(org.apache.xerces.xs.XSAttributeUse oldUse, XSAttributeUseImpl newUse)
-
getAttributeUse
public org.apache.xerces.xs.XSAttributeUse getAttributeUse(java.lang.String namespace, java.lang.String name)
-
getAttributeUseNoProhibited
public org.apache.xerces.xs.XSAttributeUse getAttributeUseNoProhibited(java.lang.String namespace, java.lang.String name)
-
removeProhibitedAttrs
public void removeProhibitedAttrs()
-
validRestrictionOf
public java.lang.Object[] validRestrictionOf(java.lang.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.- Specified by:
getTypein interfaceorg.apache.xerces.xs.XSObject
-
getName
public java.lang.String getName()
Thenameof thisXSObjectdepending on theXSObjecttype.- Specified by:
getNamein interfaceorg.apache.xerces.xs.XSObject
-
getNamespace
public java.lang.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 interfaceorg.apache.xerces.xs.XSObject
-
getAttributeUses
public org.apache.xerces.xs.XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.- Specified by:
getAttributeUsesin interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getAttributeWildcard
public org.apache.xerces.xs.XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.- Specified by:
getAttributeWildcardin interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getAnnotation
public org.apache.xerces.xs.XSAnnotation getAnnotation()
Optional. Annotation.- Specified by:
getAnnotationin interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotationsin interfaceorg.apache.xerces.xs.XSAttributeGroupDefinition
-
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
Description copied from interface:org.apache.xerces.xs.XSObjectA namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.- Specified by:
getNamespaceItemin interfaceorg.apache.xerces.xs.XSObject- See Also:
XSObject.getNamespaceItem()
-
-