public class MultiArrayDimension extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_LABEL
The name of the label field for the message.
|
static String |
FIELD_SIZE
The name of the size field for the message.
|
static String |
FIELD_STRIDE
The name of the stride field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
MultiArrayDimension()
Create a new MultiArrayDimension with all empty values.
|
MultiArrayDimension(String label,
int size,
int stride)
Create a new MultiArrayDimension with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
MultiArrayDimension |
clone()
Create a clone of this MultiArrayDimension.
|
static MultiArrayDimension |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new MultiArrayDimension based on the given JSON object.
|
static MultiArrayDimension |
fromJsonString(String jsonString)
Create a new MultiArrayDimension based on the given JSON string.
|
static MultiArrayDimension |
fromMessage(Message m)
Create a new MultiArrayDimension based on the given Message.
|
String |
getLabel()
Get the label value of this message.
|
int |
getSize()
Get the size value of this message which should be treated as an unsigned
32-bit integer.
|
int |
getStride()
Get the stride value of this message which should be treated as an
unsigned 32-bit integer.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_LABEL
public static final String FIELD_SIZE
public static final String FIELD_STRIDE
public static final String TYPE
public MultiArrayDimension()
public MultiArrayDimension(String label, int size, int stride)
label - The label of given dimension.size - The size of given dimension (in type units) treated as an
unsigned 32-bit integer.stride - The stride of given dimension treated as an unsigned 32-bit
integer.public String getLabel()
public int getSize()
public int getStride()
public MultiArrayDimension clone()
public static MultiArrayDimension fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static MultiArrayDimension fromMessage(Message m)
m - The Message to parse.public static MultiArrayDimension fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.