|
|||||||||
| Home >> All >> com >> sun >> facelets >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sun.facelets.tag
Class TagAttribute

java.lang.Objectcom.sun.facelets.tag.TagAttribute
- public final class TagAttribute
- extends java.lang.Object
Representation of a Tag's attribute in a Facelet File
- Version:
- $Id: TagAttribute.java,v 1.7 2005/11/09 03:49:18 jhook Exp $
| Field Summary | |
private boolean |
literal
|
private java.lang.String |
localName
|
private Location |
location
|
private java.lang.String |
namespace
|
private java.lang.String |
qName
|
private java.lang.String |
string
|
private java.lang.String |
value
|
| Constructor Summary | |
TagAttribute(Location location,
java.lang.String ns,
java.lang.String localName,
java.lang.String qName,
java.lang.String value)
|
|
| Method Summary | |
boolean |
getBoolean(com.sun.facelets.FaceletContext ctx)
If literal, return Boolean.getBoolean(java.lang.String) 55 passing our value, otherwise call getObject(FaceletContext, Class) 55 . |
int |
getInt(com.sun.facelets.FaceletContext ctx)
If literal, call Integer.parseInt(String) 55 , otherwise call getObject(FaceletContext, Class) 55 . |
java.lang.String |
getLocalName()
Local name of this attribute |
Location |
getLocation()
The location of this attribute in the FaceletContext |
MethodExpression |
getMethodExpression(com.sun.facelets.FaceletContext ctx,
java.lang.Class type,
java.lang.Class[] paramTypes)
Create a MethodExpression, using this attribute's value as the expression String. |
java.lang.String |
getNamespace()
The resolved Namespace for this attribute |
java.lang.Object |
getObject(com.sun.facelets.FaceletContext ctx)
Delegates to getObject with Object.class as a param |
java.lang.Object |
getObject(com.sun.facelets.FaceletContext ctx,
java.lang.Class type)
If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. |
java.lang.String |
getQName()
The qualified name for this attribute |
java.lang.String |
getValue()
Return the literal value of this attribute |
java.lang.String |
getValue(com.sun.facelets.FaceletContext ctx)
If literal, then return our value, otherwise delegate to getObject, passing String.class. |
ValueExpression |
getValueExpression(com.sun.facelets.FaceletContext ctx,
java.lang.Class type)
Create a ValueExpression, using this attribute's literal value and the passed expected type. |
boolean |
isLiteral()
If this TagAttribute is literal (not #{..} or ${..}) |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
literal
private final boolean literal
localName
private final java.lang.String localName
location
private final Location location
namespace
private final java.lang.String namespace
qName
private final java.lang.String qName
value
private final java.lang.String value
string
private java.lang.String string
| Constructor Detail |
TagAttribute
public TagAttribute(Location location, java.lang.String ns, java.lang.String localName, java.lang.String qName, java.lang.String value)
| Method Detail |
getBoolean
public boolean getBoolean(com.sun.facelets.FaceletContext ctx)
- If literal, return
Boolean.getBoolean(java.lang.String) 55
passing our value, otherwise call
getObject(FaceletContext, Class) 55 .
getInt
public int getInt(com.sun.facelets.FaceletContext ctx)
- If literal, call
Integer.parseInt(String) 55 ,
otherwise call
getObject(FaceletContext, Class) 55 .
getLocalName
public java.lang.String getLocalName()
- Local name of this attribute
getLocation
public Location getLocation()
- The location of this attribute in the FaceletContext
getMethodExpression
public MethodExpression getMethodExpression(com.sun.facelets.FaceletContext ctx, java.lang.Class type, java.lang.Class[] paramTypes)
- Create a MethodExpression, using this attribute's value as the expression
String.
getNamespace
public java.lang.String getNamespace()
- The resolved Namespace for this attribute
getObject
public java.lang.Object getObject(com.sun.facelets.FaceletContext ctx)
- Delegates to getObject with Object.class as a param
getQName
public java.lang.String getQName()
- The qualified name for this attribute
getValue
public java.lang.String getValue()
- Return the literal value of this attribute
getValue
public java.lang.String getValue(com.sun.facelets.FaceletContext ctx)
- If literal, then return our value, otherwise delegate to getObject,
passing String.class.
getObject
public java.lang.Object getObject(com.sun.facelets.FaceletContext ctx, java.lang.Class type)
- If literal, simply coerce our String literal value using an
ExpressionFactory, otherwise create a ValueExpression and evaluate it.
getValueExpression
public ValueExpression getValueExpression(com.sun.facelets.FaceletContext ctx, java.lang.Class type)
- Create a ValueExpression, using this attribute's literal value and the
passed expected type.
isLiteral
public boolean isLiteral()
- If this TagAttribute is literal (not #{..} or ${..})
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> sun >> facelets >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.sun.facelets.tag.TagAttribute