public abstract class TagAttribute extends Object
| Constructor and Description | 
|---|
| TagAttribute() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | getBoolean(FaceletContext ctx)If literal, return  Boolean.getBoolean(java.lang.String)passing our
 value, otherwise callgetObject(FaceletContext, Class). | 
| abstract int | getInt(FaceletContext ctx)If literal, call  Integer.parseInt(String), otherwise callgetObject(FaceletContext, Class). | 
| abstract String | getLocalName()Local name of this attribute | 
| abstract Location | getLocation()The location of this attribute in the FaceletContext | 
| abstract jakarta.el.MethodExpression | getMethodExpression(FaceletContext ctx,
                   Class type,
                   Class[] paramTypes)Create a MethodExpression, using this attribute's value as the expression String. | 
| abstract String | getNamespace()The resolved Namespace for this attribute | 
| abstract Object | getObject(FaceletContext ctx)Delegates to getObject with Object.class as a param | 
| abstract Object | getObject(FaceletContext ctx,
         Class type)If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression
 and evaluate it. | 
| abstract String | getQName()The qualified name for this attribute | 
| Tag | getTag() | 
| abstract String | getValue()Return the literal value of this attribute | 
| abstract String | getValue(FaceletContext ctx)If literal, then return our value, otherwise delegate to getObject, passing String.class. | 
| abstract jakarta.el.ValueExpression | getValueExpression(FaceletContext ctx,
                  Class type)Create a ValueExpression, using this attribute's literal value and the passed expected type. | 
| abstract boolean | isLiteral()If this TagAttribute is literal (not #{..} or ${..}) | 
| void | setTag(Tag tag) | 
public abstract boolean getBoolean(FaceletContext ctx)
Boolean.getBoolean(java.lang.String) passing our
 value, otherwise call getObject(FaceletContext, Class).ctx - FaceletContext to useBoolean.getBoolean(java.lang.String), 
getObject(FaceletContext, Class)public abstract int getInt(FaceletContext ctx)
Integer.parseInt(String), otherwise call
 getObject(FaceletContext, Class).ctx - FaceletContext to useInteger.parseInt(java.lang.String), 
getObject(FaceletContext, Class)public abstract String getLocalName()
public abstract Location getLocation()
public abstract jakarta.el.MethodExpression getMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes)
ctx - FaceletContext to usetype - expected return typeparamTypes - parameter typeExpressionFactory.createMethodExpression(jakarta.el.ELContext, java.lang.String, java.lang.Class,
      java.lang.Class[]), 
MethodExpressionpublic abstract String getNamespace()
public abstract Object getObject(FaceletContext ctx)
ctx - FaceletContext to usegetObject(FaceletContext, Class)public abstract Object getObject(FaceletContext ctx, Class type)
ctx - FaceletContext to usetype - expected return typeExpressionFactory.coerceToType(java.lang.Object, java.lang.Class), 
ExpressionFactory.createValueExpression(jakarta.el.ELContext, java.lang.String, java.lang.Class), 
ValueExpressionpublic abstract String getQName()
public abstract String getValue()
public abstract String getValue(FaceletContext ctx)
ctx - FaceletContext to usegetObject(FaceletContext, Class)public abstract jakarta.el.ValueExpression getValueExpression(FaceletContext ctx, Class type)
ctx - FaceletContext to usetype - expected return typeExpressionFactory.createValueExpression(jakarta.el.ELContext, java.lang.String, java.lang.Class), 
ValueExpressionpublic abstract boolean isLiteral()
public Tag getTag()
public void setTag(Tag tag)
tag - Copyright © 2021 The Apache Software Foundation. All rights reserved.