public class TagAttributeImpl
extends javax.faces.view.facelets.TagAttribute
| Constructor and Description |
|---|
TagAttributeImpl() |
TagAttributeImpl(javax.faces.view.Location location,
String ns,
String localName,
String qName,
String value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(javax.faces.view.facelets.FaceletContext ctx)
If literal,return
|
int |
getInt(javax.faces.view.facelets.FaceletContext ctx)
If literal, call
Integer.parseInt(String),
otherwise call
getObject(FaceletContext, Class). |
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,
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(javax.faces.view.facelets.FaceletContext ctx)
Delegates to getObject with Object.class as a param
|
Object |
getObject(javax.faces.view.facelets.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
|
javax.faces.view.facelets.Tag |
getTag()
A reference to the Tag for which this class represents the attributes. |
String |
getValue()
Return the literal value of this attribute
|
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,
Class type)
Create a ValueExpression, using this attribute's literal value and the
passed expected type.
|
javax.el.ValueExpression |
getValueExpression(javax.faces.view.facelets.FaceletContext ctx,
String expr,
Class type) |
boolean |
isLiteral()
If this TagAttributeImpl is literal (not #{..} or ${..})
|
void |
setTag(javax.faces.view.facelets.Tag tag)
Set a reference to the Tag for which this class represents the attributes. |
String |
toString() |
public boolean getBoolean(javax.faces.view.facelets.FaceletContext ctx)
If literal,return
Boolean.valueOf(java.lang.String)
passing our value, otherwise call
getObject(FaceletContext, Class).
getBoolean in class javax.faces.view.facelets.TagAttributectx - FaceletContext to useBoolean.valueOf(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 useInteger.parseInt(java.lang.String),
getObject(FaceletContext, Class)public String getLocalName()
getLocalName in class javax.faces.view.facelets.TagAttributepublic javax.faces.view.Location getLocation()
getLocation in class javax.faces.view.facelets.TagAttributepublic javax.el.MethodExpression getMethodExpression(javax.faces.view.facelets.FaceletContext ctx,
Class type,
Class[] paramTypes)
getMethodExpression in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usetype - expected return typeparamTypes - parameter typeExpressionFactory.createMethodExpression(javax.el.ELContext,
java.lang.String, java.lang.Class, java.lang.Class[]),
MethodExpressionpublic String getNamespace()
getNamespace in class javax.faces.view.facelets.TagAttributepublic Object getObject(javax.faces.view.facelets.FaceletContext ctx)
getObject in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usegetObject(FaceletContext, Class)public String getQName()
getQName in class javax.faces.view.facelets.TagAttributepublic javax.faces.view.facelets.Tag getTag()
javax.faces.view.facelets.TagAttributeA reference to the Tag for which this class
represents the attributes. For compatibility with previous
implementations, an implementation is provided that returns
null.
getTag in class javax.faces.view.facelets.TagAttributeTag for which this class represents the attributes.public void setTag(javax.faces.view.facelets.Tag tag)
javax.faces.view.facelets.TagAttributeSet a reference to the Tag for which this
class represents the attributes. The VDL runtime must ensure that this
method is called before any FaceletHandlers for this element are instantiated. For compatibility
with previous implementations, a no-op implementation is provided.
setTag in class javax.faces.view.facelets.TagAttributetag - the tag we represent.public String getValue()
getValue in class javax.faces.view.facelets.TagAttributepublic String getValue(javax.faces.view.facelets.FaceletContext ctx)
getValue in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usegetObject(FaceletContext, Class)public Object getObject(javax.faces.view.facelets.FaceletContext ctx, Class type)
getObject in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usetype - expected return typeExpressionFactory.coerceToType(java.lang.Object, java.lang.Class),
ExpressionFactory.createValueExpression(javax.el.ELContext,
java.lang.String, java.lang.Class),
ValueExpressionpublic javax.el.ValueExpression getValueExpression(javax.faces.view.facelets.FaceletContext ctx,
Class type)
getValueExpression in class javax.faces.view.facelets.TagAttributectx - FaceletContext to usetype - expected return typeExpressionFactory.createValueExpression(javax.el.ELContext,
java.lang.String, java.lang.Class),
ValueExpressionpublic boolean isLiteral()
isLiteral in class javax.faces.view.facelets.TagAttributeCopyright © 2010–2020 JBoss by Red Hat. All rights reserved.