org.apache.tapestry.markup
Class DefaultAttribute

java.lang.Object
  extended by org.apache.tapestry.markup.DefaultAttribute
All Implemented Interfaces:
Attribute

public class DefaultAttribute
extends Object
implements Attribute

Used to hold markup attribute data for writing in a specific format.

Author:
jkuhnert

Field Summary
protected  boolean _raw
           
protected  String _value
           
 
Constructor Summary
DefaultAttribute(String value, boolean raw)
           
 
Method Summary
 Object getValue()
          Retrieves the current value for the attribute.
 boolean isRaw()
          Whether or not this attribute should be written out in raw form as specified by IMarkupWriter.attribute(String, boolean) .
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_value

protected String _value

_raw

protected boolean _raw
Constructor Detail

DefaultAttribute

public DefaultAttribute(String value,
                        boolean raw)
Method Detail

getValue

public Object getValue()
Description copied from interface: Attribute
Retrieves the current value for the attribute.

Specified by:
getValue in interface Attribute
Returns:
The current value for the attribute.

isRaw

public boolean isRaw()
Description copied from interface: Attribute
Whether or not this attribute should be written out in raw form as specified by IMarkupWriter.attribute(String, boolean) .

Specified by:
isRaw in interface Attribute
Returns:
True if content will be written in raw form, false otherwise.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.