|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.view.facelets.TagAttribute
org.apache.myfaces.view.facelets.tag.TagAttributeImpl
public final class TagAttributeImpl
Representation of a Tag's attribute in a Facelet File
| Constructor Summary | |
|---|---|
TagAttributeImpl(javax.faces.view.Location location,
java.lang.String ns,
java.lang.String localName,
java.lang.String qName,
java.lang.String value)
|
|
| Method Summary | |
|---|---|
boolean |
getBoolean(javax.faces.view.facelets.FaceletContext ctx)
If literal, return Boolean.getBoolean(java.lang.String) passing our
value, otherwise call getObject(FaceletContext, Class). |
int |
getInt(javax.faces.view.facelets.FaceletContext ctx)
If literal, call Integer.parseInt(String), otherwise call
getObject(FaceletContext, Class). |
java.lang.String |
getLocalName()
Local name of this attribute |
javax.faces.view.Location |
getLocation()
The location of this attribute in the FaceletContext |
javax.el.MethodExpression |
getMethodExpression(javax.faces.view.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(javax.faces.view.facelets.FaceletContext ctx)
Delegates to getObject with Object.class as a param |
java.lang.Object |
getObject(javax.faces.view.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(javax.faces.view.facelets.FaceletContext ctx)
If literal, then return our value, otherwise delegate to getObject, passing String.class. |
javax.el.ValueExpression |
getValueExpression(javax.faces.view.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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TagAttributeImpl(javax.faces.view.Location location,
java.lang.String ns,
java.lang.String localName,
java.lang.String qName,
java.lang.String value)
| Method Detail |
|---|
public boolean getBoolean(javax.faces.view.facelets.FaceletContext ctx)
Boolean.getBoolean(java.lang.String) passing our
value, otherwise call getObject(FaceletContext, Class).
getBoolean in class javax.faces.view.facelets.TagAttributectx - FaceletContext to use
Boolean.getBoolean(java.lang.String),
getObject(FaceletContext, Class)public int getInt(javax.faces.view.facelets.FaceletContext ctx)
Integer.parseInt(String), otherwise call
getObject(FaceletContext, Class).
getInt in class javax.faces.view.facelets.TagAttributectx - FaceletContext to use
Integer.parseInt(java.lang.String),
getObject(FaceletContext, Class)public java.lang.String getLocalName()
getLocalName in class javax.faces.view.facelets.TagAttributepublic javax.faces.view.Location getLocation()
getLocation in class javax.faces.view.facelets.TagAttribute
public javax.el.MethodExpression getMethodExpression(javax.faces.view.facelets.FaceletContext ctx,
java.lang.Class type,
java.lang.Class[] paramTypes)
getMethodExpression in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usetype - expected return typeparamTypes - parameter type
ExpressionFactory.createMethodExpression(javax.el.ELContext, java.lang.String, java.lang.Class,
java.lang.Class[]),
MethodExpressionpublic java.lang.String getNamespace()
getNamespace in class javax.faces.view.facelets.TagAttributepublic java.lang.Object getObject(javax.faces.view.facelets.FaceletContext ctx)
getObject in class javax.faces.view.facelets.TagAttributectx - FaceletContext to use
getObject(FaceletContext, Class)public java.lang.String getQName()
getQName in class javax.faces.view.facelets.TagAttributepublic java.lang.String getValue()
getValue in class javax.faces.view.facelets.TagAttributepublic java.lang.String getValue(javax.faces.view.facelets.FaceletContext ctx)
getValue in class javax.faces.view.facelets.TagAttributectx - FaceletContext to use
getObject(FaceletContext, Class)
public java.lang.Object getObject(javax.faces.view.facelets.FaceletContext ctx,
java.lang.Class type)
getObject in class javax.faces.view.facelets.TagAttributectx - 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(javax.faces.view.facelets.FaceletContext ctx,
java.lang.Class type)
getValueExpression in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usetype - expected return type
ExpressionFactory.createValueExpression(javax.el.ELContext, java.lang.String, java.lang.Class),
ValueExpressionpublic boolean isLiteral()
isLiteral in class javax.faces.view.facelets.TagAttributepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||