| java.lang.Object com.sun.facelets.tag.TagAttribute
TagAttribute | final public class TagAttribute (Code) | | Representation of a Tag's attribute in a Facelet File
author: Jacob Hookom version: $Id: TagAttribute.java,v 1.8 2008/02/20 06:35:52 rlubke Exp $ |
Method Summary | |
public boolean | getBoolean(FaceletContext ctx) If literal, return
Boolean.getBoolean(java.lang.String) Boolean.getBoolean(java.lang.String) passing our value, otherwise call
TagAttribute.getObject(FaceletContext,Class) getObject(FaceletContext, Class) . | public int | getInt(FaceletContext ctx) If literal, call
Integer.parseInt(java.lang.String) Integer.parseInt(String) ,
otherwise call
TagAttribute.getObject(FaceletContext,Class) getObject(FaceletContext, Class) . | public String | getLocalName() | public Location | getLocation() | public MethodExpression | getMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes) Create a MethodExpression, using this attribute's value as the expression
String. | public String | getNamespace() | public Object | getObject(FaceletContext ctx) | public Object | getObject(FaceletContext ctx, Class type) If literal, simply coerce our String literal value using an
ExpressionFactory, otherwise create a ValueExpression and evaluate it. | public String | getQName() | public String | getValue() | public String | getValue(FaceletContext ctx) If literal, then return our value, otherwise delegate to getObject,
passing String.class. | public ValueExpression | getValueExpression(FaceletContext ctx, Class type) Create a ValueExpression, using this attribute's literal value and the
passed expected type. | public boolean | isLiteral() | public String | toString() |
getLocalName | public String getLocalName()(Code) | | Local name of this attribute
local name of this attribute |
getLocation | public Location getLocation()(Code) | | The location of this attribute in the FaceletContext
the TagAttribute's location |
getMethodExpression | public MethodExpression getMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes)(Code) | | Create a MethodExpression, using this attribute's value as the expression
String.
See Also: ExpressionFactory.createMethodExpression(javax.el.ELContextjava.lang.Stringjava.lang.Classjava.lang.Class[]) See Also: MethodExpression Parameters: ctx - FaceletContext to use Parameters: type - expected return type Parameters: paramTypes - parameter type a MethodExpression instance |
getNamespace | public String getNamespace()(Code) | | The resolved Namespace for this attribute
resolved Namespace |
getObject | public Object getObject(FaceletContext ctx, Class type)(Code) | | If literal, simply coerce our String literal value using an
ExpressionFactory, otherwise create a ValueExpression and evaluate it.
See Also: ExpressionFactory.coerceToType(java.lang.Objectjava.lang.Class) See Also: ExpressionFactory.createValueExpression(javax.el.ELContextjava.lang.Stringjava.lang.Class) See Also: ValueExpression Parameters: ctx - FaceletContext to use Parameters: type - expected return type Object value of this attribute |
getQName | public String getQName()(Code) | | The qualified name for this attribute
the qualified name for this attribute |
getValue | public String getValue()(Code) | | Return the literal value of this attribute
literal value |
getValueExpression | public ValueExpression getValueExpression(FaceletContext ctx, Class type)(Code) | | Create a ValueExpression, using this attribute's literal value and the
passed expected type.
See Also: ExpressionFactory.createValueExpression(javax.el.ELContextjava.lang.Stringjava.lang.Class) See Also: ValueExpression Parameters: ctx - FaceletContext to use Parameters: type - expected return type ValueExpression instance |
isLiteral | public boolean isLiteral()(Code) | | If this TagAttribute is literal (not #{..} or ${..})
true if this attribute is literal |
|
|