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, wait
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
protected EscapeMode escapeMode
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.public int getIntValue(String path, int defaultValue)
getValue(String)
in preference to ensure ClearSilver compatibility.getIntValue
in interface Data
public String getValue(String path)
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)
public String toString()
public void toString(StringBuilder out, int indent)
public void optimize()
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
Copyright © 2010–2017 Google. All rights reserved.