|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.facelets.tag.TagAttribute
public final class TagAttribute
Representation of a Tag's attribute in a Facelet File
Constructor Summary | |
---|---|
TagAttribute(Location location,
String ns,
String localName,
String qName,
String value)
|
Method Summary | |
---|---|
boolean |
getBoolean(FaceletContext ctx)
If literal, return Boolean.getBoolean(java.lang.String)
passing our value, otherwise call
getObject(FaceletContext, Class) . |
int |
getInt(FaceletContext ctx)
If literal, call Integer.parseInt(String) ,
otherwise call
getObject(FaceletContext, Class) . |
String |
getLocalName()
Local name of this attribute |
Location |
getLocation()
The location of this attribute in the FaceletContext |
javax.el.MethodExpression |
getMethodExpression(FaceletContext ctx,
Class type,
Class[] paramTypes)
Create a MethodExpression, using this attribute's value as the expression String. |
String |
getNamespace()
The resolved Namespace for this attribute |
Object |
getObject(FaceletContext ctx)
Delegates to getObject with Object.class as a param |
Object |
getObject(FaceletContext ctx,
Class type)
If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. |
String |
getQName()
The qualified name for this attribute |
String |
getValue()
Return the literal value of this attribute |
String |
getValue(FaceletContext ctx)
If literal, then return our value, otherwise delegate to getObject, passing String.class. |
javax.el.ValueExpression |
getValueExpression(FaceletContext ctx,
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 ${..}) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TagAttribute(Location location, String ns, String localName, String qName, String value)
Method Detail |
---|
public boolean getBoolean(FaceletContext ctx)
Boolean.getBoolean(java.lang.String)
passing our value, otherwise call
getObject(FaceletContext, Class)
.
ctx
- FaceletContext to use
Boolean.getBoolean(java.lang.String)
,
getObject(FaceletContext, Class)
public int getInt(FaceletContext ctx)
Integer.parseInt(String)
,
otherwise call
getObject(FaceletContext, Class)
.
ctx
- FaceletContext to use
Integer.parseInt(java.lang.String)
,
getObject(FaceletContext, Class)
public String getLocalName()
public Location getLocation()
public javax.el.MethodExpression getMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes)
ctx
- FaceletContext to usetype
- expected return typeparamTypes
- parameter type
ExpressionFactory.createMethodExpression(javax.el.ELContext,
java.lang.String, java.lang.Class, java.lang.Class[])
,
MethodExpression
public String getNamespace()
public Object getObject(FaceletContext ctx)
ctx
- FaceletContext to use
getObject(FaceletContext, Class)
public String getQName()
public String getValue()
public String getValue(FaceletContext ctx)
ctx
- FaceletContext to use
getObject(FaceletContext, Class)
public Object getObject(FaceletContext ctx, Class type)
ctx
- FaceletContext to usetype
- expected return type
ExpressionFactory.coerceToType(java.lang.Object, java.lang.Class)
,
ExpressionFactory.createValueExpression(javax.el.ELContext,
java.lang.String, java.lang.Class)
,
ValueExpression
public javax.el.ValueExpression getValueExpression(FaceletContext ctx, Class type)
ctx
- FaceletContext to usetype
- expected return type
ExpressionFactory.createValueExpression(javax.el.ELContext,
java.lang.String, java.lang.Class)
,
ValueExpression
public boolean isLiteral()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |