public class Result
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.Type |
| Constructor and Description |
|---|
Result()
Default constructor
|
Result(java.util.Map<java.lang.String,java.lang.String> context)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(Error error)
Add an error to the result
|
void |
addPath(java.lang.String mappingId,
java.lang.String tableId)
Add a mapping/table to the path history
|
java.util.Map<java.lang.String,java.lang.String> |
getContext()
Return the result context
|
java.util.List<Error> |
getErrors()
Get the full list of errors
|
java.util.List<java.lang.String> |
getPath()
Get a list of all the tables that were used in the calculation
|
Result.Type |
getType()
Return the type of result
|
boolean |
hasErrors()
Does the result contain any errors
|
void |
setContext(java.util.Map<java.lang.String,java.lang.String> context)
Set the result context
|
void |
setType(Result.Type type)
Set the type of result
|
public Result()
public Result(java.util.Map<java.lang.String,java.lang.String> context)
context - a Map representing the contextpublic Result.Type getType()
public void setType(Result.Type type)
type - a result typepublic java.util.Map<java.lang.String,java.lang.String> getContext()
public void setContext(java.util.Map<java.lang.String,java.lang.String> context)
context - a Map representing the contextpublic boolean hasErrors()
public java.util.List<Error> getErrors()
public void addError(Error error)
error - an error objectpublic java.util.List<java.lang.String> getPath()
public void addPath(java.lang.String mappingId,
java.lang.String tableId)
mappingId - a mapping identifiertableId - a table identifier