org.deegree_impl.model.ct
Class DomainFlags

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

public final class DomainFlags
extends EnumeratedParameter

Flags indicating parts of domain covered by a convex hull. These flags can be combined. For example, the enum INSIDE.or(OUTSIDE) means that some parts of the convex hull are inside the domain, and some parts of the convex hull are outside the domain.

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

Field Summary
static DomainFlags DISCONTINUOUS
          At least one point in a convex hull is not transformed continuously.
private static DomainFlags[] ENUMS
          Domain flags by value.
static DomainFlags INSIDE
          At least one point in a convex hull is inside the transform's domain.
static DomainFlags OUTSIDE
          At least one point in a convex hull is outside the transform's domain.
private static long serialVersionUID
          Serial number for interoperability with different versions.
 
Constructor Summary
private DomainFlags(java.lang.String name, int value)
          Construct a new enum value.
 
Method Summary
static DomainFlags getEnum(int value)
          Return the enum for the specified value.
 java.lang.String[] getNames(java.util.Locale locale)
          Returns enum's names in the specified locale.
 DomainFlags or(DomainFlags flags)
          Returns a combination of two domain flags.
private  java.lang.Object readResolve()
          Use a single instance of DomainFlags 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

ENUMS

private static final DomainFlags[] ENUMS
Domain flags by value. Used to canonicalize after deserialization.


INSIDE

public static final DomainFlags INSIDE
At least one point in a convex hull is inside the transform's domain.

See Also:
CT_DomainFlags.CT_DF_Inside

OUTSIDE

public static final DomainFlags OUTSIDE
At least one point in a convex hull is outside the transform's domain.

See Also:
CT_DomainFlags.CT_DF_Outside

DISCONTINUOUS

public static final DomainFlags DISCONTINUOUS
At least one point in a convex hull is not transformed continuously. As an example, consider a "Longitude_Rotation" transform which adjusts longitude coordinates to take account of a change in Prime Meridian. If the rotation is 5 degrees east, then the point (Lat=0,Lon=175) is not transformed continuously, since it is on the meridian line which will be split at +180/-180 degrees.

See Also:
CT_DomainFlags.CT_DF_Discontinuous
Constructor Detail

DomainFlags

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

Method Detail

getEnum

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

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.

getNames

public java.lang.String[] getNames(java.util.Locale locale)
Returns enum's names in the specified locale. For example if this enum has value "3", then getNames returns an array of two elements: "Inside" and "Outside".

Parameters:
locale - The locale, or null for the current default locale.
Returns:
Enum's names in the specified locale (never null).

or

public DomainFlags or(DomainFlags flags)
Returns a combination of two domain flags. This is equivalent to getEnum(this.getValue() | flags.getValue()).


readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
Use a single instance of DomainFlags 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.