@ThreadSafe public class CoordinateTransform extends java.lang.Object implements java.lang.Comparable<CoordinateTransform>
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateTransform.Builder<T extends CoordinateTransform.Builder<T>> |
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 |
Modifier | Constructor and Description |
---|---|
protected |
CoordinateTransform(CoordinateTransform.Builder<?> builder,
NetcdfDataset ncd) |
|
CoordinateTransform(java.lang.String name,
java.lang.String authority,
TransformType transformType)
Deprecated.
Use CoordinateTransform.builder()
|
protected |
CoordinateTransform(java.lang.String name,
java.lang.String authority,
TransformType transformType,
java.util.List<Parameter> params)
Create a Coordinate Transform.
|
Modifier and Type | Method and Description |
---|---|
protected CoordinateTransform.Builder<?> |
addLocalFieldsToBuilder(CoordinateTransform.Builder<? extends CoordinateTransform.Builder<?>> b) |
void |
addParameter(Parameter param)
Deprecated.
Use CoordinateTransform.builder()
|
static CoordinateTransform.Builder<?> |
builder()
Get Builder for this class that allows subclassing.
|
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.
|
AttributeContainer |
getAttributeContainer() |
java.lang.String |
getAuthority() |
java.lang.String |
getName() |
com.google.common.collect.ImmutableList<Parameter> |
getParameters() |
TransformType |
getTransformType() |
int |
hashCode()
Override Object.hashCode() to be consistent with equals.
|
CoordinateTransform.Builder<?> |
toBuilder() |
java.lang.String |
toString() |
protected java.lang.String name
protected java.lang.String authority
protected final TransformType transformType
protected java.util.List<Parameter> params
protected CoordinateTransform(java.lang.String name, java.lang.String authority, TransformType transformType, java.util.List<Parameter> params)
name
- name of transform, must be unique within the Coordinate System.authority
- naming authoritytransformType
- type of transform.params
- list of Parameters.@Deprecated 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.protected CoordinateTransform(CoordinateTransform.Builder<?> builder, NetcdfDataset ncd)
@Deprecated public void addParameter(Parameter param)
param
- add this Parameterpublic java.lang.String getName()
public AttributeContainer getAttributeContainer()
public java.lang.String getAuthority()
public TransformType getTransformType()
public com.google.common.collect.ImmutableList<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>
public CoordinateTransform.Builder<?> toBuilder()
protected CoordinateTransform.Builder<?> addLocalFieldsToBuilder(CoordinateTransform.Builder<? extends CoordinateTransform.Builder<?>> b)
public static CoordinateTransform.Builder<?> builder()