public class GoalStatusArray extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_HEADER
The name of the header field for the message.
|
static String |
FIELD_STATUS_LIST
The name of the status list field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
GoalStatusArray()
Create a new, empty GoalStatusArray.
|
GoalStatusArray(Header header,
GoalStatus[] statusList)
Create a new GoalStatusArray with the given set of statuses and header.
|
| Modifier and Type | Method and Description |
|---|---|
GoalStatusArray |
clone()
Create a clone of this GoalStatusArray.
|
static GoalStatusArray |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new GoalStatusArray based on the given JSON object.
|
static GoalStatusArray |
fromJsonString(String jsonString)
Create a new GoalStatusArray based on the given JSON string.
|
static GoalStatusArray |
fromMessage(Message m)
Create a new GoalStatusArray based on the given Message.
|
GoalStatus |
get(int index)
Get the status in the status array at the given index.
|
Header |
getHeader()
Get the header value of this status array.
|
GoalStatus[] |
getStatusList()
Get the statuses of this status array.
|
int |
size()
Get the number of statuses in this status array.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_HEADER
public static final String FIELD_STATUS_LIST
public static final String TYPE
public GoalStatusArray()
public GoalStatusArray(Header header, GoalStatus[] statusList)
header - The message header.statusList - The statuses of the status array.public int size()
public GoalStatus get(int index)
index - The index to get the status of.public GoalStatus[] getStatusList()
public Header getHeader()
public GoalStatusArray clone()
public static GoalStatusArray fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static GoalStatusArray fromMessage(Message m)
m - The Message to parse.public static GoalStatusArray fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.