Package uk.ac.rdg.resc.edal.metadata
Class Parameter
- java.lang.Object
-
- uk.ac.rdg.resc.edal.metadata.Parameter
-
- All Implemented Interfaces:
Serializable
public class Parameter extends Object implements Serializable
- Author:
- Jon, Guy Griffiths
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameter.Category
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<Integer,Parameter.Category>getCategories()StringgetDescription()Map<String,String>getForeignTitles()StringgetStandardName()StringgetTitle()StringgetUnits()StringgetVariableId()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Parameter
public Parameter(String varId, String title, String description, String units, String standardName)
- Parameters:
varId- The ID of the variable which this parameter describestitle- A human-readable title for the quantity being measureddescription- A human-readable description of the quantityunits- The units of the measured quantitystandardName- The standard of the measured quantity
-
Parameter
public Parameter(String varId, String title, String description, String units, String standardName, Map<Integer,Parameter.Category> categories)
- Parameters:
varId- The ID of the variable which this parameter describestitle- A human-readable title for the quantity being measureddescription- A human-readable description of the quantityunits- The units of the measured quantitystandardName- The standard of the measured quantitycategories- TheMapof integers to the categories they represent (for categorical data only)
-
-
Method Detail
-
getVariableId
public String getVariableId()
-
getTitle
public String getTitle()
- Returns:
- Human-readable, fairly short title for the parameter.
-
getForeignTitles
public Map<String,String> getForeignTitles()
- Returns:
- A Map of langauge code to title in that language
-
getDescription
public String getDescription()
- Returns:
- Human-readable, perhaps-lengthy description of the parameter.
-
getUnits
public String getUnits()
- Returns:
- The units of this parameter
-
getStandardName
public String getStandardName()
- Returns:
- The standard name of the phenomena which this represents TODO This should allow multiple standard names and have scope for different vocabularies
-
getCategories
public Map<Integer,Parameter.Category> getCategories()
- Returns:
- A
Mapof integer values to theParameter.Categorythey represent. Returnsnullfor non-categorical data.
-
-