org.deegree_impl.model.ct
Class TransformType

java.lang.Object
  extended byEnumeratedParameter
      extended byorg.deegree_impl.model.ct.TransformType

public final class TransformType
extends EnumeratedParameter

Semantic type of transform used in coordinate transformation.

Version:
1.00
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux
See Also:
CT_TransformType, Serialized Form

Field Summary
static TransformType CONVERSION
          Transform depends only on defined parameters.
static TransformType CONVERSION_AND_TRANSFORMATION
          Transform depends on both defined and empirical parameters.
private static TransformType[] ENUMS
          Transform types by value.
private  int key
          Resource key, used for building localized name.
static TransformType OTHER
          Unknown or unspecified type of transform.
private static long serialVersionUID
          Serial number for interoperability with different versions.
static TransformType TRANSFORMATION
          Transform depends only on empirically derived parameters.
 
Constructor Summary
private TransformType(java.lang.String name, int value, int key)
          Construct a new enum value.
 
Method Summary
 TransformType concatenate(TransformType type)
          Concatenate this transform type with the specified transform type.
static TransformType getEnum(int value)
          Return the enum for the specified value.
 java.lang.String getName(java.util.Locale locale)
          Returns this enum's name in the specified locale.
private  java.lang.Object readResolve()
          Use a single instance of TransformType after deserialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial number for interoperability with different versions.

See Also:
Constant Field Values

OTHER

public static final TransformType OTHER
Unknown or unspecified type of transform.

See Also:
CT_TransformType.CT_TT_Other

CONVERSION

public static final TransformType CONVERSION
Transform depends only on defined parameters. For example, a cartographic projection.

See Also:
CT_TransformType.CT_TT_Conversion

TRANSFORMATION

public static final TransformType TRANSFORMATION
Transform depends only on empirically derived parameters. For example a datum transformation.

See Also:
CT_TransformType.CT_TT_Transformation

CONVERSION_AND_TRANSFORMATION

public static final TransformType CONVERSION_AND_TRANSFORMATION
Transform depends on both defined and empirical parameters.

See Also:
CT_TransformType.CT_TT_ConversionAndTransformation

ENUMS

private static final TransformType[] ENUMS
Transform types by value. Used to canonicalize after deserialization.


key

private final transient int key
Resource key, used for building localized name. This key doesn't need to be serialized, since readResolve() canonicalize enums according their #value. Furthermore, its value is implementation-dependent (which is an other raison why it should not be serialized).

Constructor Detail

TransformType

private TransformType(java.lang.String name,
                      int value,
                      int key)
Construct a new enum value.

Method Detail

getEnum

public static TransformType getEnum(int value)
                             throws java.util.NoSuchElementException
Return the enum for the specified value. This method is provided for compatibility with CT_TransformType.

Parameters:
value - The enum value.
Returns:
The enum for the specified value.
Throws:
java.util.NoSuchElementException - if there is no enum for the specified value.

getName

public java.lang.String getName(java.util.Locale locale)
Returns this enum's name in the specified locale. If no name is available for the specified locale, a default one will be used.

Parameters:
locale - The locale, or null for the current default locale.
Returns:
Enum's name in the specified locale.

concatenate

public TransformType concatenate(TransformType type)
Concatenate this transform type with the specified transform type. If at least one transform type is OTHER, then OTHER is returned. Otherwise, transform type values are combined as with the logical "OR" operand.


readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
Use a single instance of TransformType after deserialization. It allow client code to test enum1==enum2 instead of enum1.equals(enum2).

Returns:
A single instance of this enum.
Throws:
java.io.ObjectStreamException - is deserialization failed.