public class PropertyReadResult extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
READ_STATUS_ERROR
An error occurred while processing property expression
|
static int |
READ_STATUS_RESTRICTED
Property read could not be executed because of read restrictions
|
static int |
READ_STATUS_SUCCESS
Property read ended successfully
|
| Constructor and Description |
|---|
PropertyReadResult(int status)
Constructor for failed property read
|
PropertyReadResult(Object value)
Constructor for successful read
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus()
Gets property read status
|
<T extends Serializable> |
getValue() |
boolean |
isSuccessful() |
public static final int READ_STATUS_SUCCESS
public static final int READ_STATUS_RESTRICTED
public static final int READ_STATUS_ERROR
public PropertyReadResult(int status)
status - read status describing failure reasonREAD_STATUS_RESTRICTED,
READ_STATUS_ERRORpublic PropertyReadResult(Object value)
value - property valueREAD_STATUS_SUCCESSpublic int getStatus()
READ_STATUS_RESTRICTED,
READ_STATUS_SUCCESS,
READ_STATUS_ERRORpublic <T extends Serializable> T getValue()
public boolean isSuccessful()
Copyright © 2018. All rights reserved.