public final class Tag
extends java.lang.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 of Tag
to the TagHandler
instance
that is passed the TagConfig
in its constructor.
Constructor and Description |
---|
Tag(Location location,
java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
TagAttributes attributes)
Constructor.
|
Tag(Tag orig,
TagAttributes attributes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TagAttributes |
getAttributes()
Return an object encapsulating the |
java.lang.String |
getLocalName()
Return the XML local name of the tag. |
Location |
getLocation()
Return the Location of this |
java.lang.String |
getNamespace()
Return the resolved XML Namespace for this tag in the Facelets view. |
java.lang.String |
getQName()
Return the XML qualified name for this tag. |
java.lang.String |
toString()
Get the string representation.
|
public Tag(Location location, java.lang.String namespace, java.lang.String localName, java.lang.String qName, TagAttributes attributes)
location
- the location.namespace
- the XML namespace.localName
- the XML local name.qName
- the XML qualified name.attributes
- the tag attributes.public Tag(Tag orig, TagAttributes attributes)
orig
- the original tag.attributes
- the tag attributes.public TagAttributes getAttributes()
Return an object encapsulating the TagAttributes
specified on this element in the view.
TagAttributes
.public java.lang.String getLocalName()
Return the XML local name of the tag. For example, <my:tag /> would be "tag".
public Location getLocation()
Return the Location of this Tag
instance in the Facelet view.
public java.lang.String getNamespace()
Return the resolved XML Namespace for this tag in the Facelets view.
public java.lang.String getQName()
Return the XML qualified name for this tag. For example, <my:tag /> would be "my:tag".
public java.lang.String toString()
toString
in class java.lang.Object