| Modifier and Type | Field and Description |
|---|---|
static String |
EXPORTER
The data key whose value is the class name of the exporter.
|
static String |
OPTIONS
The data key whose value are the options used by the exporter.
|
static String |
OUTCOME
The data key whose value is the results of the export.
|
static String |
PATH_EXPORTED_NODE
The data key whose value is the absolute path of the node being exported.
|
static String |
TYPE
The data key whose value is the type of the results.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ResultImpl() |
protected |
ResultImpl(String pathOfExportedNode,
Options options) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData(String key) |
Exception |
getError()
An unsuccessful export may not have a caught exception.
|
String |
getErrorMessage()
If the export was not successful the error message will always have a value.
|
Options |
getOptions() |
Object |
getOutcome() |
Class<?> |
getType() |
Iterator<String> |
iterator() |
Object |
setData(String key,
Object value) |
void |
setError(String message,
Exception error) |
void |
setOutcome(Object outcome,
Class<?> outcomeType) |
boolean |
wasSuccessful() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String EXPORTER
public static final String OPTIONS
public static final String OUTCOME
setOutcome(Object, Class),
Constant Field Valuespublic static final String PATH_EXPORTED_NODE
public static final String TYPE
public Object getData(String key)
getData in interface Resultkey - the type of data being requested (cannot be null)null)Result.getData(java.lang.String)public Exception getError()
getError in interface Resultnull)Result.getError()public String getErrorMessage()
getErrorMessage in interface Resultnull when export was successful )Result.getErrorMessage()public Options getOptions()
getOptions in interface Resultnull but can be empty if all default values were used)Result.getOptions()public Object getOutcome()
getOutcome in interface Resultnull)Result.getOutcome()public Class<?> getType()
getType in interface ResultResult.getOutcome() method (will be null until outcome is set)Result.getType()public Iterator<String> iterator()
iterator in interface Iterable<String>Iterable.iterator()public Object setData(String key, Object value)
key - the data key (cannot be null or empty)value - the data value (can be null if removing current data)null)public void setError(String message, Exception error)
message - the error message (can be null or empty)error - the error (can be null)public void setOutcome(Object outcome, Class<?> outcomeType)
outcome - the outcome of the export (cannot be null)outcomeType - the type of the outcome (cannot be null)public boolean wasSuccessful()
wasSuccessful in interface Resulttrue if there is no error and no error messageResult.wasSuccessful()Copyright © 2018 JBoss by Red Hat. All rights reserved.