org.mmbase.bridge.jsp.taglib.util
Class NullAttribute

java.lang.Object
  extended by org.mmbase.bridge.jsp.taglib.util.Attribute
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.bridge.jsp.taglib.util.Attribute
Attribute.ExpressionPart, Attribute.Part, Attribute.StringPart, Attribute.VariablePart
 
Field Summary
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.util.Attribute
NULL
 
Constructor Summary
NullAttribute()
           
 
Method Summary
 void appendValue(ContextReferrerTag tag, StringBuilder buffer)
          Appends the evaluated Attribute to StringBuilder
 String getString(ContextReferrerTag tag)
          Returns the evaluated Attribute as a String.
 Object getValue(ContextReferrerTag tag)
          Returns the evaluated Attribute as an Object.
 String toString()
          String representation of this Attribute object (for debugging)
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.util.Attribute
containsVars, getAttribute, getAttribute, getBoolean, getInt, getList, getLong, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullAttribute

NullAttribute()
Method Detail

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