Class Conversion.Parameter
Object
Parameter
- Enclosing class:
- Conversion
Represents a conversion parameter in PROJJSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the ID of the parameter.getName()Gets the name of the parameter.getUnit()Gets the unit of measurement for the parameter.getValue()Gets the value of the parameter.voidSets the ID of the parameter.voidSets the name of the parameter.voidSets the unit of measurement for the parameter.voidSets the value of the parameter.
-
Constructor Details
-
Parameter
public Parameter()Creates a new Parameter with default values.
-
-
Method Details
-
getName
Gets the name of the parameter.- Returns:
- The parameter name, e.g., "Latitude of natural origin"
-
setName
Sets the name of the parameter.- Parameters:
name- The parameter name
-
getValue
Gets the value of the parameter.- Returns:
- The parameter value, which can be a number or a string (e.g., file name)
-
setValue
Sets the value of the parameter.- Parameters:
value- The parameter value
-
getUnit
Gets the unit of measurement for the parameter.This can be either a string (for common units like "degree" or "metre") or a Unit object with detailed unit information.
- Returns:
- The unit of measurement
-
setUnit
Sets the unit of measurement for the parameter.- Parameters:
unit- The unit of measurement
-
getId
Gets the ID of the parameter.- Returns:
- The parameter ID
-
setId
Sets the ID of the parameter.- Parameters:
id- The parameter ID
-