org.apache.xerces.impl.xs
Class XSAttributeGroupDecl
java.lang.Object
org.apache.xerces.impl.xs.XSAttributeGroupDecl
- org.apache.xerces.xs.XSAttributeGroupDefinition
public class XSAttributeGroupDecl
extends java.lang.Object
implements org.apache.xerces.xs.XSAttributeGroupDefinition
The XML representation for an attribute group declaration
schema component is a global
element information item
$Id: XSAttributeGroupDecl.java 388853 2006-03-25 23:05:56Z mrglavas $- Sandy Gao, IBM
- Rahul Srivastava, Sun Microsystems Inc.
fAnnotations
public org.apache.xerces.xs.XSObjectList fAnnotations
fIDAttrName
public String fIDAttrName
fTargetNamespace
public String fTargetNamespace
getAnnotation
public org.apache.xerces.xs.XSAnnotation getAnnotation()
Optional. Annotation.
- getAnnotation in interface org.apache.xerces.xs.XSAttributeGroupDefinition
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()
Optional. Annotations.
- getAnnotations in interface org.apache.xerces.xs.XSAttributeGroupDefinition
getAttributeUse
public org.apache.xerces.xs.XSAttributeUse getAttributeUse(String namespace,
String name)
getAttributeUses
public org.apache.xerces.xs.XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.
- getAttributeUses in interface org.apache.xerces.xs.XSAttributeGroupDefinition
getAttributeWildcard
public org.apache.xerces.xs.XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.
- getAttributeWildcard in interface org.apache.xerces.xs.XSAttributeGroupDefinition
getName
public String getName()
The name
of this XSObject
depending on the
XSObject
type.
- getName in interface org.apache.xerces.xs.XSObject
getNamespace
public String getNamespace()
The namespace URI of this node, or null
if it is
unspecified. defines how a namespace URI is attached to schema
components.
- getNamespace in interface org.apache.xerces.xs.XSObject
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
- getNamespaceItem in interface org.apache.xerces.xs.XSObject
org.apache.xerces.xs.XSObject.getNamespaceItem()
getType
public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
- getType in interface org.apache.xerces.xs.XSObject
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?
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
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.