Modifier and Type | Class and Description |
---|---|
static class |
TransformationResult.Status |
Modifier | Constructor and Description |
---|---|
|
TransformationResult() |
|
TransformationResult(int errorCode,
String errorDescription)
Creates error transformation result with specific code and description.
|
|
TransformationResult(TransformationResult.Status status,
O message,
I externalRemainder) |
protected |
TransformationResult(TransformationResult.Status status,
O message,
I externalRemainder,
int errorCode,
String errorDescription) |
Modifier and Type | Method and Description |
---|---|
static <I,O> TransformationResult<I,O> |
createCompletedResult(O message,
I externalRemainder) |
static <I,O> TransformationResult<I,O> |
createErrorResult(int errorCode,
String errorDescription) |
static <I,O> TransformationResult<I,O> |
createIncompletedResult(I externalRemainder) |
int |
getErrorCode() |
String |
getErrorDescription() |
I |
getExternalRemainder() |
O |
getMessage() |
TransformationResult.Status |
getStatus() |
void |
recycle()
Recycle this
Context |
void |
reset()
If implementation uses
ObjectPool to store
and reuse TransformationResult instances - this method will be
called before TransformationResult will be offered to pool. |
void |
setErrorCode(int errorCode) |
void |
setErrorDescription(String errorDescription) |
void |
setExternalRemainder(I externalRemainder) |
void |
setMessage(O message) |
void |
setStatus(TransformationResult.Status status) |
String |
toString() |
public TransformationResult()
public TransformationResult(TransformationResult.Status status, O message, I externalRemainder)
public TransformationResult(int errorCode, String errorDescription)
errorCode
- id of the errorerrorDescription
- error descriptionprotected TransformationResult(TransformationResult.Status status, O message, I externalRemainder, int errorCode, String errorDescription)
public static <I,O> TransformationResult<I,O> createErrorResult(int errorCode, String errorDescription)
public static <I,O> TransformationResult<I,O> createCompletedResult(O message, I externalRemainder)
public static <I,O> TransformationResult<I,O> createIncompletedResult(I externalRemainder)
public O getMessage()
public void setMessage(O message)
public I getExternalRemainder()
public void setExternalRemainder(I externalRemainder)
public TransformationResult.Status getStatus()
public void setStatus(TransformationResult.Status status)
public int getErrorCode()
public void setErrorCode(int errorCode)
public String getErrorDescription()
public void setErrorDescription(String errorDescription)
public void reset()
ObjectPool
to store
and reuse TransformationResult
instances - this method will be
called before TransformationResult
will be offered to pool.Copyright © 2015 Oracle Corporation. All rights reserved.