@ThreadSafe public class CoordinateTransform extends java.lang.Object implements java.lang.Comparable<CoordinateTransform>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
authority |
protected java.lang.String |
name |
protected java.util.List<Parameter> |
params |
protected TransformType |
transformType |
Constructor and Description |
---|
CoordinateTransform(java.lang.String name,
java.lang.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(java.lang.Object oo)
Instances which have same name, authority and parameters are equal.
|
Parameter |
findParameterIgnoreCase(java.lang.String name)
Convenience function; look up Parameter by name, ignoring case.
|
java.lang.String |
getAuthority()
get the naming authority
|
java.lang.String |
getName()
get the name
|
java.util.List<Parameter> |
getParameters()
get list of ProjectionParameter objects.
|
TransformType |
getTransformType()
get the transform type
|
int |
hashCode()
Override Object.hashCode() to be consistent with equals.
|
java.lang.String |
toString() |
protected final java.lang.String name
protected final java.lang.String authority
protected final TransformType transformType
protected java.util.List<Parameter> params
public CoordinateTransform(java.lang.String name, java.lang.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 java.lang.String getName()
public java.lang.String getAuthority()
public TransformType getTransformType()
public java.util.List<Parameter> getParameters()
public Parameter findParameterIgnoreCase(java.lang.String name)
name
- the name of the attributepublic boolean equals(java.lang.Object oo)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(CoordinateTransform oct)
compareTo
in interface java.lang.Comparable<CoordinateTransform>