|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.view.facelets.TagAttribute
public abstract class TagAttribute
Representation of an XML attribute name=value pair on an XML element in a Facelet file.
Constructor Summary | |
---|---|
TagAttribute()
|
Method Summary | |
---|---|
abstract boolean |
getBoolean(FaceletContext ctx)
If literal, return Boolean.getBoolean(java.lang.String)
passing our value, otherwise call
getObject(FaceletContext, Class) . |
abstract int |
getInt(FaceletContext ctx)
If literal, call Integer.parseInt(String) ,
otherwise call
getObject(FaceletContext, Class) . |
abstract java.lang.String |
getLocalName()
Local name of this attribute |
abstract Location |
getLocation()
The location of this attribute in the FaceletContext |
abstract MethodExpression |
getMethodExpression(FaceletContext ctx,
java.lang.Class type,
java.lang.Class[] paramTypes)
Create a MethodExpression, using this attribute's value as the expression String. |
abstract java.lang.String |
getNamespace()
The resolved Namespace for this attribute |
abstract java.lang.Object |
getObject(FaceletContext ctx)
Delegates to getObject with Object.class as a param |
abstract java.lang.Object |
getObject(FaceletContext ctx,
java.lang.Class type)
If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. |
abstract java.lang.String |
getQName()
The qualified name for this attribute |
abstract java.lang.String |
getValue()
Return the literal value of this attribute |
abstract java.lang.String |
getValue(FaceletContext ctx)
If literal, then return our value, otherwise delegate to getObject, passing String.class. |
abstract ValueExpression |
getValueExpression(FaceletContext ctx,
java.lang.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 ${..}) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagAttribute()
Method Detail |
---|
public abstract 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 abstract 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 abstract java.lang.String getLocalName()
public abstract Location getLocation()
public abstract MethodExpression getMethodExpression(FaceletContext ctx, java.lang.Class type, java.lang.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 abstract java.lang.String getNamespace()
public abstract java.lang.Object getObject(FaceletContext ctx)
ctx
- FaceletContext to use
getObject(FaceletContext, Class)
public abstract java.lang.String getQName()
public abstract java.lang.String getValue()
public abstract java.lang.String getValue(FaceletContext ctx)
ctx
- FaceletContext to use
getObject(FaceletContext, Class)
public abstract java.lang.Object getObject(FaceletContext ctx, java.lang.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 abstract ValueExpression getValueExpression(FaceletContext ctx, java.lang.Class type)
ctx
- FaceletContext to usetype
- expected return type
ExpressionFactory#createValueExpression(javax.el.ELContext,
java.lang.String, java.lang.Class)
,
ValueExpression
public abstract boolean isLiteral()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41