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. 
 | 
String | 
getDescription()
Returns a description of this parameter. 
 | 
String | 
getFill()
Returns a string representation of the fill value for this parameter. 
 | 
String[] | 
getLabel()
Returns the labels for this parameter. 
 | 
int | 
getLength()
Returns the length of this parameter. 
 | 
String | 
getName()
Returns the parameter name. 
 | 
int[] | 
getSize()
Returns the size attribute of this parameter. 
 | 
HapiType<?,?> | 
getType()
Returns the parameter data type. 
 | 
String[] | 
getUnits()
Returns the units for this parameter. 
 | 
static String[] | 
stringOrArray(Object json)
Interprets an object which may be either a String or a JSONArray
 as an array of strings. 
 | 
String getName()
HapiType<?,?> getType()
int getLength()
HapiType.STRING
 and HapiType.ISOTIME, and -1 for numeric types.int[] getSize()
String[] getUnits()
String[] getLabel()
String getFill()
String getDescription()
HapiBins[] getBins()
static HapiParam fromJson(org.json.JSONObject json)
json - JSON objectstatic String[] stringOrArray(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 JSONCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.