|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.clearsilver.jsilver.data.AbstractData
public abstract class AbstractData
This class is meant to hold implementation common to different instances of Data interface.
Field Summary | |
---|---|
protected EscapeMode |
escapeMode
|
Constructor Summary | |
---|---|
AbstractData()
|
Method Summary | |
---|---|
boolean |
getBooleanValue()
Returns the boolean value of this HDF node, or false if this node has no value. |
boolean |
getBooleanValue(String path)
Retrieves the value at the specified path in this HDF node's subtree. |
EscapeMode |
getEscapeMode()
Indicates the escaping, if any that was applied to this HDF node. |
int |
getIntValue()
Returns the integer value of this HDF node, or 0 if this node has no value. |
int |
getIntValue(String path)
Retrieves the value at the specified path in this HDF node's subtree. |
int |
getIntValue(String path,
int defaultValue)
Retrieves the integer value at the specified path in this HDF node's subtree. |
String |
getValue(String path)
Retrieves the value at the specified path in this HDF node's subtree. |
String |
getValue(String path,
String defaultValue)
Retrieves the value at the specified path in this HDF node's subtree. |
void |
optimize()
Optimizes the Data structure for performance. |
void |
setEscapeMode(EscapeMode mode)
Set the escaping that was applied to this HDF node. |
void |
setValue(String path,
String value)
Sets the value at the specified path in this HDF node's subtree. |
String |
toString()
|
void |
toString(StringBuilder out,
int indent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.clearsilver.jsilver.data.Data |
---|
copy, copy, createChild, getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getFullPath, getName, getNextSibling, getParent, getRoot, getSymlink, getValue, hasAttribute, isFirstSibling, isLastSibling, removeTree, setAttribute, setSymlink, setSymlink, setSymlink, setValue, write |
Field Detail |
---|
protected EscapeMode escapeMode
Constructor Detail |
---|
public AbstractData()
Method Detail |
---|
public int getIntValue()
Data
getIntValue
in interface Data
public boolean getBooleanValue()
Data
getBooleanValue
in interface Data
public String getValue(String path, String defaultValue)
getValue(String)
in preference to ensure ClearSilver compatibility.
getValue
in interface Data
public int getIntValue(String path, int defaultValue)
getValue(String)
in preference to ensure ClearSilver compatibility.
getIntValue
in interface Data
public String getValue(String path)
getValue
in interface Data
public int getIntValue(String path)
getIntValue
in interface Data
public boolean getBooleanValue(String path)
getBooleanValue
in interface Data
public void setValue(String path, String value)
setValue
in interface Data
public String toString()
toString
in interface Data
toString
in class Object
public void toString(StringBuilder out, int indent)
toString
in interface Data
public void optimize()
Data
optimize
in interface Data
public void setEscapeMode(EscapeMode mode)
Data
setEscapeMode
in interface Data
Data.getEscapeMode()
public EscapeMode getEscapeMode()
Data
getEscapeMode
in interface Data
EscapeMode.ESCAPE_NONE
if the
value is not escaped. EscapeMode.ESCAPE_IS_CONSTANT
if value is a string or
numeric literal.Data.setEscapeMode(com.google.clearsilver.jsilver.autoescape.EscapeMode)
,
EscapeMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |