Class 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.
    • Constructor Detail

      • XSAttributeGroupDecl

        public XSAttributeGroupDecl()
    • Method Detail

      • 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 purposes
        baseGroup - 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 interface XSObject
      • getName

        public String getName()
        The name of this XSObject depending on the XSObject type.
        Specified by:
        getName in interface 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.
        Specified by:
        getNamespace in interface XSObject