public interface HapiParam
Modifier and Type | Method and Description |
---|---|
static HapiParam |
fromJson(org.json.JSONObject json)
Reads HapiParam from a HAPI Parameter JSON object.
|
HapiBins[] |
getBins()
Returns an array of bins objects for this parameter.
|
java.lang.String |
getDescription()
Returns a description of this parameter.
|
java.lang.String |
getFill()
Returns a string representation of the fill value for this parameter.
|
java.lang.String[] |
getLabel()
Returns the labels for this parameter.
|
int |
getLength()
Returns the length of this parameter.
|
java.lang.String |
getName()
Returns the parameter name.
|
int[] |
getSize()
Returns the size attribute of this parameter.
|
HapiType<?,?> |
getType()
Returns the parameter data type.
|
java.lang.String[] |
getUnits()
Returns the units for this parameter.
|
static java.lang.String[] |
stringOrArray(java.lang.Object json)
Interprets an object which may be either a String or a JSONArray
as an array of strings.
|
java.lang.String getName()
HapiType<?,?> getType()
int getLength()
HapiType.STRING
and HapiType.ISOTIME
, and -1 for numeric types.int[] getSize()
java.lang.String[] getUnits()
java.lang.String[] getLabel()
java.lang.String getFill()
java.lang.String getDescription()
HapiBins[] getBins()
static HapiParam fromJson(org.json.JSONObject json)
json
- JSON objectstatic java.lang.String[] stringOrArray(java.lang.Object json)
This method should be private, but Java 8, unlike Java 9+, does not permit private static methods on interfaces.
json
- object assumed to be read from JSON