public class ChainedData extends DelegatedData
Note: If you have elements foo.1, foo.2, foo.3 in first Data object and foo.4, foo.5, foo.6 in second Data object, then fetching children of foo will return only foo.1 foo.2 foo.3 from first Data object.
DelegatedData.DelegatedIterator| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG_MULTIPLE_ASSIGNMENTS |
static Logger |
logger |
| Constructor and Description |
|---|
ChainedData(Data... dataList) |
ChainedData(Data data)
Optmization for case of single item.
|
ChainedData(List<Data> dataList) |
| Modifier and Type | Method and Description |
|---|---|
Data |
createChild(String path)
Retrieves the HDF object that is the root of the subtree at hdfpath, create the subtree if it
doesn't exist
|
boolean |
getBooleanValue(String path)
Retrieves the value at the specified path in this HDF node's subtree.
|
Data |
getChild(String path)
Retrieves the object that is the root of the subtree at hdfpath, returning null if the subtree
doesn't exist
|
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.
|
protected DelegatedData |
newInstance(Data newDelegate)
Subclasses will want to override this method to return a Data object of their specific type.
|
void |
optimize()
Optimizes the Data structure for performance.
|
void |
toString(StringBuilder out,
int indent) |
void |
write(Appendable out,
int indent)
Write out the String representation of this HDF node.
|
copy, copy, getAttribute, getAttributeCount, getAttributes, getBooleanValue, getChildCount, getChildren, getDelegate, getEscapeMode, getFullPath, getIntValue, getName, getNextSibling, getParent, getRoot, getSymlink, getValue, hasAttribute, isFirstSibling, isLastSibling, newChildIterator, removeTree, setAttribute, setEscapeMode, setSymlink, setSymlink, setSymlink, setValue, setValue, toString, unwrappublic static final Logger logger
public static final boolean DEBUG_MULTIPLE_ASSIGNMENTS
public ChainedData(Data data)
data - a single data object to wrap.public ChainedData(Data... dataList)
protected DelegatedData newInstance(Data newDelegate)
DelegatedDatanewInstance in class DelegatedDatanewDelegate - the Data object to wrap with a new delegatorpublic Data getChild(String path)
DatagetChild in interface DatagetChild in class DelegatedDatapublic Data createChild(String path)
DatacreateChild in interface DatacreateChild in class DelegatedDatapublic String getValue(String path, String defaultValue)
DatagetValue in interface DatagetValue in class DelegatedDatapublic int getIntValue(String path, int defaultValue)
DatagetIntValue in interface DatagetIntValue in class DelegatedDatapublic String getValue(String path)
DatagetValue in interface DatagetValue in class DelegatedDatapublic int getIntValue(String path)
DatagetIntValue in interface DatagetIntValue in class DelegatedDatapublic boolean getBooleanValue(String path)
DatagetBooleanValue in interface DatagetBooleanValue in class DelegatedDatapublic void toString(StringBuilder out, int indent)
toString in interface DatatoString in class DelegatedDatapublic void write(Appendable out, int indent) throws IOException
Datawrite in interface Datawrite in class DelegatedDataIOExceptionpublic void optimize()
Dataoptimize in interface Dataoptimize in class DelegatedDataCopyright © 2010–2013 Google. All rights reserved.