@ThreadSafe public class CoordinateTransform extends Object implements Comparable<CoordinateTransform>
Modifier and Type | Field and Description |
---|---|
protected String |
authority |
protected String |
name |
protected List<Parameter> |
params |
protected TransformType |
transformType |
Constructor and Description |
---|
CoordinateTransform(String name,
String authority,
TransformType transformType)
Create a Coordinate Transform.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter param)
add a parameter
|
int |
compareTo(CoordinateTransform oct) |
boolean |
equals(Object oo)
Instances which have same name, authority and parameters are equal.
|
Parameter |
findParameterIgnoreCase(String name)
Convenience function; look up Parameter by name, ignoring case.
|
String |
getAuthority()
get the naming authority
|
String |
getName()
get the name
|
List<Parameter> |
getParameters()
get list of ProjectionParameter objects.
|
TransformType |
getTransformType()
get the transform type
|
int |
hashCode()
Override Object.hashCode() to be consistent with equals.
|
String |
toString() |
protected final String name
protected final String authority
protected final TransformType transformType
public CoordinateTransform(String name, String authority, TransformType transformType)
name
- name of transform, must be unique within the NcML.authority
- naming authoritytransformType
- type of transform.public void addParameter(Parameter param)
param
- add this Parameterpublic String getName()
public String getAuthority()
public TransformType getTransformType()
public List<Parameter> getParameters()
public Parameter findParameterIgnoreCase(String name)
name
- the name of the attributepublic boolean equals(Object oo)
public int hashCode()
public int compareTo(CoordinateTransform oct)
compareTo
in interface Comparable<CoordinateTransform>