public class MultiArrayLayout extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_DATA_OFFSET
The name of the data offset field for the message.
|
static String |
FIELD_DIM
The name of the dimensions field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
MultiArrayLayout()
Create a new MultiArrayLayout with empty values.
|
MultiArrayLayout(MultiArrayDimension[] dim,
int dataOffset)
Create a new MultiArrayLayout with the given set of layouts.
|
| Modifier and Type | Method and Description |
|---|---|
MultiArrayLayout |
clone()
Create a clone of this MultiArrayLayout.
|
static MultiArrayLayout |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new MultiArrayLayout based on the given JSON object.
|
static MultiArrayLayout |
fromJsonString(String jsonString)
Create a new MultiArrayLayout based on the given JSON string.
|
static MultiArrayLayout |
fromMessage(Message m)
Create a new MultiArrayLayout based on the given Message.
|
MultiArrayDimension |
get(int index)
Get the dimension at the given index.
|
int |
getDataOffset()
Get the data offset value.
|
MultiArrayDimension[] |
getDim()
Get the dimension properties.
|
int |
size()
Get the number of dimension properties in this array layout.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_DIM
public static final String FIELD_DATA_OFFSET
public static final String TYPE
public MultiArrayLayout()
public MultiArrayLayout(MultiArrayDimension[] dim, int dataOffset)
dim - The array of dimension properties.dataOffset - The padding bytes at front of the data.public int size()
public MultiArrayDimension get(int index)
index - The index to get the dimension property of.public MultiArrayDimension[] getDim()
public int getDataOffset()
public MultiArrayLayout clone()
public static MultiArrayLayout fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static MultiArrayLayout fromMessage(Message m)
m - The Message to parse.public static MultiArrayLayout fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.