public abstract class AbstractData extends Object implements Data
| Modifier and Type | Field and Description |
|---|---|
protected EscapeMode |
escapeMode |
| Constructor and Description |
|---|
AbstractData() |
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, copy, createChild, getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getFullPath, getName, getNextSibling, getParent, getRoot, getSymlink, getValue, hasAttribute, isFirstSibling, isLastSibling, removeTree, setAttribute, setSymlink, setSymlink, setSymlink, setValue, writeprotected EscapeMode escapeMode
public int getIntValue()
DatagetIntValue in interface Datapublic boolean getBooleanValue()
DatagetBooleanValue in interface Datapublic String getValue(String path, String defaultValue)
getValue(String) in preference to ensure ClearSilver compatibility.public int getIntValue(String path, int defaultValue)
getValue(String) in preference to ensure ClearSilver compatibility.getIntValue in interface Datapublic String getValue(String path)
public int getIntValue(String path)
getIntValue in interface Datapublic boolean getBooleanValue(String path)
getBooleanValue in interface Datapublic void setValue(String path, String value)
public String toString()
public void toString(StringBuilder out, int indent)
public void optimize()
Datapublic void setEscapeMode(EscapeMode mode)
DatasetEscapeMode in interface DataData.getEscapeMode()public EscapeMode getEscapeMode()
DatagetEscapeMode in interface DataEscapeMode.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),
EscapeModeCopyright © 2010–2015 Google. All rights reserved.