Top Description Fields Constructors Methods
javax.faces.view.facelets

public final Class Tag

extends Object
Class Inheritance
Imports
javax.faces.view.Location

The runtime must create an instance of this class for each element in the Facelets XHTML view. A TagConfig subinterface instance is responsible for providing an instance of Tag to the TagHandler instance that is passed the TagConfig in its constructor.

Since
2.0

Field Summary

Modifier and TypeField and Description
private final TagAttributes
attributes

Stores the tag attributes.

private final String
localName

Stores the XML local name.

private final Location
location

Stores the location.

private final String
namespace

Stores the XML namespace.

private final String
qName

Stores the XML qualified name.

Constructor Summary

AccessConstructor and Description
public
Tag(Location
the location.
location
,
String
the XML namespace.
namespace
,
String
the XML local name.
localName
,
String
the XML qualified name.
qName
,
TagAttributes
the tag attributes.
attributes
)

Constructor.

public
Tag(Tag
the original tag.
orig
,
TagAttributes
the tag attributes.
attributes
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public TagAttributes

Returns:

the TagAttributes.
getAttributes
()

Return an object encapsulating the TagAttributes specified on this element in the view.

public String

Returns:

the XML local name.
getLocalName
()

Return the XML local name of the tag.

public Location

Returns:

the Location.
getLocation
()

Return the Location of this Tag instance in the Facelet view.

public String

Returns:

the XML namespace.
getNamespace
()

Return the resolved XML Namespace for this tag in the Facelets view.

public String

Returns:

the XML qualified name.
getQName
()

Return the XML qualified name for this tag.

public String

Returns:

the string representation.
toString
()

Overrides java.lang.Object.toString.

Get the string representation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributesback to summary
private final TagAttributes attributes

Stores the tag attributes.

localNameback to summary
private final String localName

Stores the XML local name.

locationback to summary
private final Location location

Stores the location.

namespaceback to summary
private final String namespace

Stores the XML namespace.

qNameback to summary
private final String qName

Stores the XML qualified name.

Constructor Detail

Tagback to summary
public Tag(Location location, String namespace, String localName, String qName, TagAttributes attributes)

Constructor.

Parameters
location:Location

the location.

namespace:String

the XML namespace.

localName:String

the XML local name.

qName:String

the XML qualified name.

attributes:TagAttributes

the tag attributes.

Tagback to summary
public Tag(Tag orig, TagAttributes attributes)

Constructor.

Parameters
orig:Tag

the original tag.

attributes:TagAttributes

the tag attributes.

Method Detail

getAttributesback to summary
public TagAttributes getAttributes()

Return an object encapsulating the TagAttributes specified on this element in the view.

Returns:TagAttributes

the TagAttributes.

getLocalNameback to summary
public String getLocalName()

Return the XML local name of the tag. For example, <my:tag /> would be "tag".

Returns:String

the XML local name.

getLocationback to summary
public Location getLocation()

Return the Location of this Tag instance in the Facelet view.

Returns:Location

the Location.

getNamespaceback to summary
public String getNamespace()

Return the resolved XML Namespace for this tag in the Facelets view.

Returns:String

the XML namespace.

getQNameback to summary
public String getQName()

Return the XML qualified name for this tag. For example, <my:tag /> would be "my:tag".

Returns:String

the XML qualified name.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Get the string representation.

Returns:String

the string representation.

Annotations
@Override