|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.jsp.taglib.util.Attribute
MMBase Taglib attributes can contain $-variables. Parsing of these $-variables is cached. Evaluation of these vars must be postponed until doStartTag because servlet containers can decide not to call the set-function of the attribute (in case of tag-instance-reuse).
| Field Summary | |
static Attribute |
NULL
|
| Constructor Summary | |
protected |
Attribute()
|
protected |
Attribute(Object at)
The constructor is protected, construction is done by the cache. |
| Method Summary | |
void |
appendValue(ContextReferrerTag tag,
StringBuffer buffer)
Appends the evaluated Attribute to StringBuffer |
static Attribute |
getAttribute(Object at)
This is the function for public use. |
boolean |
getBoolean(ContextReferrerTag tag,
boolean def)
Returns the evaluated Attribute as a boolen (depending on if getValue returns one of the strings 'true' or 'false' (case insensitve)). |
int |
getInt(ContextReferrerTag tag,
int def)
Returns the evaluated Attribute as a int |
List |
getList(ContextReferrerTag tag)
Returns the evaluated Attribute as a List (evalatued to comma-seperated String, which is 'split'). |
long |
getLong(ContextReferrerTag tag,
long def)
|
String |
getString(ContextReferrerTag tag)
Returns the evaluated Attribute as a String. |
Object |
getValue(ContextReferrerTag tag)
Returns the evaluated Attribute as an Object. |
protected void |
parse()
Parses this attribute into list of 'attributeparts'. |
String |
toString()
String representation of this Attribute object (for debugging) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Attribute NULL
| Constructor Detail |
protected Attribute(Object at)
throws JspTagException
protected Attribute()
| Method Detail |
public static final Attribute getAttribute(Object at)
throws JspTagException
JspTagException
public void appendValue(ContextReferrerTag tag,
StringBuffer buffer)
throws JspTagException
tag - The tag relative to which the variable evalutations must be done
(normally 'this' in a Tag implementation)
JspTagException
public Object getValue(ContextReferrerTag tag)
throws JspTagException
JspTagException
public String getString(ContextReferrerTag tag)
throws JspTagException
JspTagException
public int getInt(ContextReferrerTag tag,
int def)
throws JspTagException
JspTagException
public long getLong(ContextReferrerTag tag,
long def)
throws JspTagException
JspTagException
public List getList(ContextReferrerTag tag)
throws JspTagException
JspTagException
public boolean getBoolean(ContextReferrerTag tag,
boolean def)
throws JspTagException
def - If the string is not "true" or "false', then this value is returned.
JspTagExceptionpublic String toString()
protected void parse()
throws JspTagException
getValue(org.mmbase.bridge.jsp.taglib.ContextReferrerTag)
will concatenate them together again (after evaluation).
JspTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||