public abstract class AbstractDataExporter extends java.lang.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(java.lang.String data,
ResultData root)
Finds a inner ResultData matching the specified data name in a ResultData
tree.
|
protected static <T> T |
findValue(java.lang.Class<T> clazz,
java.lang.String data,
ResultData root)
Finds a value matching the specified data name in a ResultData tree.
|
java.lang.String |
getName()
Gets the name of the exporter.
|
protected <TProperty> |
getPropertyFromConfig(SubConfiguration cfg,
java.lang.String property,
TProperty defaultValue,
java.lang.Class<TProperty> clazz) |
void |
setName(java.lang.String name)
Sets the name of the exporter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
export
protected AbstractDataExporter()
protected static <T> T findValue(java.lang.Class<T> clazz, java.lang.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(java.lang.String data, ResultData root)
data
- the name of the data containing the valueroot
- the root of the treepublic java.lang.String getName()
DataExporter
getName
in interface DataExporter
public void setName(java.lang.String name)
DataExporter
setName
in interface DataExporter
name
- the new name of the exporterprotected <TProperty> TProperty getPropertyFromConfig(SubConfiguration cfg, java.lang.String property, TProperty defaultValue, java.lang.Class<TProperty> clazz) throws ExportException
ExportException
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.