Package com.sun.faces.facelets.tag
Class TagAttributesImpl
- java.lang.Object
-
- jakarta.faces.view.facelets.TagAttributes
-
- com.sun.faces.facelets.tag.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 Summary
Constructors Constructor Description TagAttributesImpl(TagAttribute[] attrs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagAttributeget(String localName)Using no namespace, find the TagAttributeTagAttributeget(String ns, String localName)Find a TagAttribute that matches the passed namespace and local name.TagAttribute[]getAll()Return an array of all TagAttributesImpl in this setTagAttribute[]getAll(String namespace)Get all TagAttributesImpl for the passed namespaceString[]getNamespaces()A list of Namespaces found in this setTaggetTag()A reference to the Tag for which this class represents the attributes.voidsetTag(Tag tag)Set a reference to the Tag for which this class represents the attributes.StringtoString()
-
-
-
Constructor Detail
-
TagAttributesImpl
public TagAttributesImpl(TagAttribute[] attrs)
-
-
Method Detail
-
getAll
public TagAttribute[] getAll()
Return an array of all TagAttributesImpl in this set- Specified by:
getAllin classTagAttributes- Returns:
- a non-null array of TagAttributesImpl
-
get
public TagAttribute get(String localName)
Using no namespace, find the TagAttribute- Specified by:
getin classTagAttributes- Parameters:
localName- tag attribute name- Returns:
- the TagAttribute found, otherwise null
- See Also:
get(String, String)
-
get
public TagAttribute get(String ns, String localName)
Find a TagAttribute that matches the passed namespace and local name.- Specified by:
getin classTagAttributes- Parameters:
ns- namespace of the desired attributelocalName- 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:
getAllin classTagAttributes- 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:
getNamespacesin classTagAttributes- Returns:
- a list of Namespaces found in this set
-
getTag
public Tag getTag()
Description copied from class:TagAttributesA reference to the Tag for which this class represents the attributes. For compatibility with previous implementations, an implementation is provided that returns
null.- Overrides:
getTagin classTagAttributes- Returns:
- the
Tagfor which this class represents the attributes.
-
setTag
public void setTag(Tag tag)
Description copied from class:TagAttributesSet 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:
setTagin classTagAttributes- Parameters:
tag- the parent tag.
-
-