Top Description Fields Constructors Methods
com.sun.faces.facelets.tag

public final Class TagAttributesImpl

extends TagAttributes
Class Inheritance
Imports
javax.faces.view.facelets.TagAttribute, .TagAttributes, .Tag, java.util.*

A set of TagAttributesImpl, usually representing all attributes on a Tag.
Author
Jacob Hookom
Version
$Id$
See Also
javax.faces.view.facelets.TagAttribute

Field Summary

Modifier and TypeField and Description
private final TagAttribute[]
private static final TagAttribute[]
private final String[]
private final List<E>
private Tag

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TagAttribute

Returns:

the TagAttribute found, otherwise null
get
(String
tag attribute name
localName
)

Implements abstract javax.faces.view.facelets.TagAttributes.get.

Using no namespace, find the TagAttribute
public TagAttribute

Returns:

a TagAttribute found, otherwise null
get
(String
namespace of the desired attribute
ns
,
String
local name of the attribute
localName
)

Implements abstract javax.faces.view.facelets.TagAttributes.get.

Find a TagAttribute that matches the passed namespace and local name.
public TagAttribute[]

Returns:

a non-null array of TagAttributesImpl
getAll
()

Implements abstract javax.faces.view.facelets.TagAttributes.getAll.

Return an array of all TagAttributesImpl in this set
public TagAttribute[]

Returns:

a non-null array of TagAttributesImpl
getAll
(String
namespace to search
namespace
)

Implements abstract javax.faces.view.facelets.TagAttributes.getAll.

Get all TagAttributesImpl for the passed namespace
public String[]

Returns:

a list of Namespaces found in this set
getNamespaces
()

Implements abstract javax.faces.view.facelets.TagAttributes.getNamespaces.

A list of Namespaces found in this set
public Tag
getTag()

Overrides javax.faces.view.facelets.TagAttributes.getTag.

A reference to the Tag for which this class represents the attributes.

public void
setTag(Tag
the parent tag.
tag
)

Overrides javax.faces.view.facelets.TagAttributes.setTag.

Set a reference to the Tag for which this class represents the attributes.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

attrsback to summary
private final TagAttribute[] attrs
EMPTYback to summary
private static final TagAttribute[] EMPTY
nsback to summary
private final String[] ns
nsattrsback to summary
private final List<E> nsattrs
tagback to summary
private Tag tag

Constructor Detail

TagAttributesImplback to summary
public TagAttributesImpl(TagAttribute[] attrs)

Method Detail

getback to summary
public TagAttribute get(String localName)

Implements abstract javax.faces.view.facelets.TagAttributes.get.

Using no namespace, find the TagAttribute

Parameters
localName:String

tag attribute name

Returns:TagAttribute

the TagAttribute found, otherwise null

Annotations
@Override
See Also
get(String, String)
getback to summary
public TagAttribute get(String ns, String localName)

Implements abstract javax.faces.view.facelets.TagAttributes.get.

Find a TagAttribute that matches the passed namespace and local name.

Parameters
ns:String

namespace of the desired attribute

localName:String

local name of the attribute

Returns:TagAttribute

a TagAttribute found, otherwise null

Annotations
@Override
getAllback to summary
public TagAttribute[] getAll()

Implements abstract javax.faces.view.facelets.TagAttributes.getAll.

Return an array of all TagAttributesImpl in this set

Returns:TagAttribute[]

a non-null array of TagAttributesImpl

Annotations
@Override
getAllback to summary
public TagAttribute[] getAll(String namespace)

Implements abstract javax.faces.view.facelets.TagAttributes.getAll.

Get all TagAttributesImpl for the passed namespace

Parameters
namespace:String

namespace to search

Returns:TagAttribute[]

a non-null array of TagAttributesImpl

Annotations
@Override
getNamespacesback to summary
public String[] getNamespaces()

Implements abstract javax.faces.view.facelets.TagAttributes.getNamespaces.

A list of Namespaces found in this set

Returns:String[]

a list of Namespaces found in this set

Annotations
@Override
getTagback to summary
public Tag getTag()

Overrides javax.faces.view.facelets.TagAttributes.getTag.

Doc from javax.faces.view.facelets.TagAttributes.getTag.

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

Returns:Tag

the Tag for which this class represents the attributes.

Annotations
@Override
setTagback to summary
public void setTag(Tag tag)

Overrides javax.faces.view.facelets.TagAttributes.setTag.

Doc from javax.faces.view.facelets.TagAttributes.setTag.

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.

Parameters
tag:Tag

the parent tag.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override