javax.faces.view.facelets
Class Tag

java.lang.Object
  extended by javax.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 of Tag to the TagHandler instance that is passed the TagConfig in its constructor.

Since:
2.0

Constructor Summary
Tag(Location location, String namespace, String localName, String qName, TagAttributes attributes)
           
Tag(Tag orig, TagAttributes attributes)
           
 
Method Summary
 TagAttributes getAttributes()
          

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

 String getLocalName()
          

Return the XML local name of the tag.

 Location getLocation()
          

Return the Location of this Tag 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

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

Tag

public Tag(Tag orig,
           TagAttributes attributes)
Method Detail

getAttributes

public TagAttributes getAttributes()

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


getLocalName

public String getLocalName()

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


getLocation

public Location getLocation()

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


getNamespace

public String getNamespace()

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


getQName

public String getQName()

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


toString

public String toString()
Overrides:
toString in class Object


Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved.