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 TagAttribute
get(String localName)
Using no namespace, find the TagAttributeTagAttribute
get(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 setTag
getTag()
A reference to the Tag for which this class represents the attributes.void
setTag(Tag tag)
Set a reference to the Tag for which this class represents the attributes.String
toString()
-
-
-
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 classTagAttributes
- Returns:
- a non-null array of TagAttributesImpl
-
get
public TagAttribute get(String localName)
Using no namespace, find the TagAttribute- Specified by:
get
in 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:
get
in 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:
getAll
in 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:
getNamespaces
in classTagAttributes
- 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 classTagAttributes
- 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
FaceletHandler
s for this element are instantiated. For compatibility with previous implementations, a no-op implementation is provided.- Overrides:
setTag
in classTagAttributes
- Parameters:
tag
- the parent tag.
-
-