Package jakarta.faces.view.facelets
Class Tag
- java.lang.Object
-
- jakarta.faces.view.facelets.Tag
-
public final class Tag extends Object
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 ofTag
to theTagHandler
instance that is passed theTagConfig
in its constructor.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description Tag(Tag orig, TagAttributes attributes)
Constructor.Tag(Location location, String namespace, String localName, String qName, TagAttributes attributes)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagAttributes
getAttributes()
Return an object encapsulating theTagAttributes
specified on this element in the view.String
getLocalName()
Return the XML local name of the tag.Location
getLocation()
Return the Location of thisTag
instance in the Facelet view.String
getNamespace()
Return the resolved XML Namespace for this tag in the Facelets view.String
getQName()
Return the XML qualified name for this tag.String
toString()
Get the string representation.
-
-
-
Constructor Detail
-
Tag
public Tag(Location location, String namespace, String localName, String qName, TagAttributes attributes)
Constructor.- Parameters:
location
- the location.namespace
- the XML namespace.localName
- the XML local name.qName
- the XML qualified name.attributes
- the tag attributes.
-
Tag
public Tag(Tag orig, TagAttributes attributes)
Constructor.- Parameters:
orig
- the original tag.attributes
- the tag attributes.
-
-
Method Detail
-
getAttributes
public TagAttributes getAttributes()
Return an object encapsulating the
TagAttributes
specified on this element in the view.- Returns:
- the
TagAttributes
.
-
getLocalName
public String getLocalName()
Return the XML local name of the tag. For example, <my:tag /> would be "tag".
- Returns:
- the XML local name.
-
getLocation
public Location getLocation()
Return the Location of this
Tag
instance in the Facelet view.- Returns:
- the Location.
-
getNamespace
public String getNamespace()
Return the resolved XML Namespace for this tag in the Facelets view.
- Returns:
- the XML namespace.
-
getQName
public String getQName()
Return the XML qualified name for this tag. For example, <my:tag /> would be "my:tag".
- Returns:
- the XML qualified name.
-
-