public abstract class AbstractDataExporter extends Object implements DataExporter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataExporter()
Instantiates a new abstract data exporter.
|
| Modifier and Type | Method and Description |
|---|---|
protected static ResultData |
findData(String data,
ResultData root)
Finds a inner ResultData matching the specified data name in a ResultData
tree.
|
protected static <T> T |
findValue(Class<T> clazz,
String data,
ResultData root)
Finds a value matching the specified data name in a ResultData tree.
|
String |
getName()
Gets the name of the exporter.
|
protected <T> T |
getPropertyFromConfig(SubConfiguration cfg,
String property,
T defaultValue,
Class<T> clazz) |
void |
setName(String name)
Sets the name of the exporter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportprotected AbstractDataExporter()
protected static <T> T findValue(Class<T> clazz, String data, ResultData root)
T - type of value to be foundclazz - the type of the valuedata - the name of the data containing the valueroot - the root of the treeprotected static ResultData findData(String data, ResultData root)
data - the name of the data containing the valueroot - the root of the treepublic String getName()
DataExportergetName in interface DataExporterpublic void setName(String name)
DataExportersetName in interface DataExportername - the new name of the exporterprotected <T> T getPropertyFromConfig(SubConfiguration cfg, String property, T defaultValue, Class<T> clazz) throws ExportException
ExportExceptionCopyright © 1998-2021 Apache Software Foundation. All Rights Reserved.