Class TagAttributesImpl


  • public final class TagAttributesImpl
    extends TagAttributes
    A set of TagAttributesImpl, usually representing all attributes on a Tag.
    Version:
    $Id$
    Author:
    Jacob Hookom
    See Also:
    TagAttribute
    • Constructor Detail

      • TagAttributesImpl

        public TagAttributesImpl​(TagAttribute[] attrs)
    • Method Detail

      • getAll

        public TagAttribute[] getAll()
        Return an array of all TagAttributesImpl in this set
        Specified by:
        getAll in class TagAttributes
        Returns:
        a non-null array of TagAttributesImpl
      • get

        public TagAttribute get​(String ns,
                                String localName)
        Find a TagAttribute that matches the passed namespace and local name.
        Specified by:
        get in class TagAttributes
        Parameters:
        ns - namespace of the desired attribute
        localName - local name of the attribute
        Returns:
        a TagAttribute found, otherwise null
      • getAll

        public TagAttribute[] getAll​(String namespace)
        Get all TagAttributesImpl for the passed namespace
        Specified by:
        getAll in class TagAttributes
        Parameters:
        namespace - namespace to search
        Returns:
        a non-null array of TagAttributesImpl
      • getNamespaces

        public String[] getNamespaces()
        A list of Namespaces found in this set
        Specified by:
        getNamespaces in class TagAttributes
        Returns:
        a list of Namespaces found in this set
      • getTag

        public Tag getTag()
        Description copied from class: TagAttributes

        A reference to the Tag for which this class represents the attributes. For compatibility with previous implementations, an implementation is provided that returns null.

        Overrides:
        getTag in class TagAttributes
        Returns:
        the Tag for which this class represents the attributes.
      • setTag

        public void setTag​(Tag tag)
        Description copied from class: TagAttributes

        Set a reference to the Tag for which this class represents the attributes. The VDL runtime must ensure that this method is called before any FaceletHandlers for this element are instantiated. For compatibility with previous implementations, a no-op implementation is provided.

        Overrides:
        setTag in class TagAttributes
        Parameters:
        tag - the parent tag.