org.mmbase.bridge.jsp.taglib.util
Class NullAttribute
java.lang.Object
org.mmbase.bridge.jsp.taglib.util.Attribute
org.mmbase.bridge.jsp.taglib.util.NullAttribute
final class NullAttribute
- extends Attribute
The attribute containing 'null' is special. No parsing needed, nothing needed. It is very often
used, so we provide an implementation optimized for speed.
| Fields inherited from class org.mmbase.bridge.jsp.taglib.util.Attribute |
NULL |
NullAttribute
NullAttribute()
getValue
public final Object getValue(ContextReferrerTag tag)
- Description copied from class:
Attribute
- Returns the evaluated Attribute as an Object. Can also be null.
- Overrides:
getValue in class Attribute
- Parameters:
tag - tag with the attribute
- Returns:
- Value of attribute
getString
public final String getString(ContextReferrerTag tag)
- Description copied from class:
Attribute
- Returns the evaluated Attribute as a String. This is never null (empty string in that case)..
- Overrides:
getString in class Attribute
- Parameters:
tag - tag with the attribute
- Returns:
- Value of attribute
appendValue
public final void appendValue(ContextReferrerTag tag,
StringBuilder buffer)
- Description copied from class:
Attribute
- Appends the evaluated Attribute to StringBuilder
- Overrides:
appendValue in class Attribute
- Parameters:
tag - The tag relative to which the variable evaluations must be done
(normally 'this' in a Tag implementation)buffer - buffer to write attribute value to
toString
public final String toString()
- Description copied from class:
Attribute
- String representation of this Attribute object (for debugging)
- Overrides:
toString in class Attribute
- See Also:
Object.toString()
MMBase 2.0-SNAPSHOT - null