Class AttributeGroupReference

  • All Implemented Interfaces:
    java.io.Serializable

    public final class AttributeGroupReference
    extends AttributeGroup
    An XML Schema Attribute Group Definition
    Version:
    $Revision: 5951 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
    Author:
    Keith Visco
    See Also:
    Serialized Form
    • Constructor Detail

      • AttributeGroupReference

        public AttributeGroupReference​(Schema schema,
                                       java.lang.String reference)
        Creates a new AttributeGroup definition
        Parameters:
        schema - the Schema that this AttributeGroup belongs to.
    • Method Detail

      • getAnyAttribute

        public Wildcard getAnyAttribute()
        Returns the anyAttribute set in this attribute group if any.
        Specified by:
        getAnyAttribute in class AttributeGroup
        Returns:
        the anyAttribute set in this attribute group if any.
      • getReference

        public java.lang.String getReference()
        Gets the name of the attribute group this class refers to.
      • resolveReference

        public AttributeGroup resolveReference()
        Resolves the attribute group reference
        Returns:
        the attribute group defined at the schema level that is refered to by this class.
      • getAttribute

        public AttributeDecl getAttribute​(java.lang.String name)
        Returns the AttributeDecl associated with the given name
        Specified by:
        getAttribute in class AttributeGroup
        Returns:
        the AttributeDecl associated with the given name, or null if no AttributeDecl with the given name was found.
      • getAttributes

        public java.util.Enumeration getAttributes()
        Returns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup
        Specified by:
        getAttributes in class AttributeGroup
        Returns:
        an Enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup
      • isEmpty

        public boolean isEmpty()
        Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups
        Specified by:
        isEmpty in class AttributeGroup
        Returns:
        true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups