Class TagAttributeImpl
java.lang.Object
jakarta.faces.view.facelets.TagAttribute
org.apache.myfaces.view.facelets.tag.TagAttributeImpl
Representation of a Tag's attribute in a Facelet File
- Version:
- $Id$
- Author:
- Jacob Hookom
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetBoolean(FaceletContext ctx) If literal, returnBoolean.getBoolean(java.lang.String)passing our value, otherwise callgetObject(FaceletContext, Class).intgetInt(FaceletContext ctx) If literal, callInteger.parseInt(String), otherwise callgetObject(FaceletContext, Class).Local name of this attributeThe location of this attribute in the FaceletContextjakarta.el.MethodExpressiongetMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes) Create a MethodExpression, using this attribute's value as the expression String.The resolved Namespace for this attributegetObject(FaceletContext ctx) Delegates to getObject with Object.class as a param See #getObject(FaceletContext, Class)getObject(FaceletContext ctx, Class type) If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it.getQName()The qualified name for this attributegetValue()Return the literal value of this attributegetValue(FaceletContext ctx) If literal, then return our value, otherwise delegate to getObject, passing String.class.jakarta.el.ValueExpressiongetValueExpression(FaceletContext ctx, Class type) Create a ValueExpression, using this attribute's literal value and the passed expected type.booleanIf this TagAttribute is literal (not #{..} or ${..})toString()Methods inherited from class jakarta.faces.view.facelets.TagAttributegetTag, setTag
- 
Constructor Details- 
TagAttributeImpl
 
- 
- 
Method Details- 
getBooleanIf literal, returnBoolean.getBoolean(java.lang.String)passing our value, otherwise callgetObject(FaceletContext, Class). See Boolean#getBoolean(java.lang.String) See #getObject(FaceletContext, Class)- Specified by:
- getBooleanin class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- Returns:
- boolean value
 
- 
getIntIf literal, callInteger.parseInt(String), otherwise callgetObject(FaceletContext, Class). See Integer#parseInt(java.lang.String) See #getObject(FaceletContext, Class)- Specified by:
- getIntin class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- Returns:
- int value
 
- 
getLocalNameLocal name of this attribute- Specified by:
- getLocalNamein class- TagAttribute
- Returns:
- local name of this attribute
 
- 
getLocationThe location of this attribute in the FaceletContext- Specified by:
- getLocationin class- TagAttribute
- Returns:
- the TagAttribute's location
 
- 
getMethodExpressionpublic jakarta.el.MethodExpression getMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes) Create a MethodExpression, using this attribute's value as the expression String. See ExpressionFactory#createMethodExpression(jakarta.el.ELContext, java.lang.String, java.lang.Class, java.lang.Class[]) See MethodExpression- Specified by:
- getMethodExpressionin class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- type- expected return type
- paramTypes- parameter type
- Returns:
- a MethodExpression instance
 
- 
getNamespaceThe resolved Namespace for this attribute- Specified by:
- getNamespacein class- TagAttribute
- Returns:
- resolved Namespace
 
- 
getObjectDelegates to getObject with Object.class as a param See #getObject(FaceletContext, Class)- Specified by:
- getObjectin class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- Returns:
- Object representation of this attribute's value
 
- 
getQNameThe qualified name for this attribute- Specified by:
- getQNamein class- TagAttribute
- Returns:
- the qualified name for this attribute
 
- 
getValueReturn the literal value of this attribute- Specified by:
- getValuein class- TagAttribute
- Returns:
- literal value
 
- 
getValueIf literal, then return our value, otherwise delegate to getObject, passing String.class. See #getObject(FaceletContext, Class)- Specified by:
- getValuein class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- Returns:
- String value of this attribute
 
- 
getObjectIf literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. See ExpressionFactory#coerceToType(java.lang.Object, java.lang.Class) See ExpressionFactory#createValueExpression(jakarta.el.ELContext, java.lang.String, java.lang.Class) See ValueExpression- Specified by:
- getObjectin class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- type- expected return type
- Returns:
- Object value of this attribute
 
- 
getValueExpressionCreate a ValueExpression, using this attribute's literal value and the passed expected type. See ExpressionFactory#createValueExpression(jakarta.el.ELContext, java.lang.String, java.lang.Class) See ValueExpression- Specified by:
- getValueExpressionin class- TagAttribute
- Parameters:
- ctx- FaceletContext to use
- type- expected return type
- Returns:
- ValueExpression instance
 
- 
isLiteralpublic boolean isLiteral()If this TagAttribute is literal (not #{..} or ${..})- Specified by:
- isLiteralin class- TagAttribute
- Returns:
- true if this attribute is literal
 
- 
toString
 
-