org.deegree_impl.model.ct
Class Adapters

java.lang.Object
  extended byorg.deegree_impl.model.ct.Adapters

public class Adapters
extends java.lang.Object

Provide methods for interoperability with org.opengis.ct package. All methods accept null argument. All OpenGIS objects are suitable for RMI use.

Version:
1.0
Author:
Martin Desruisseaux

Field Summary
 Adapters CS
          The underlying adapters from the org.deegree_impl.model.cs package.
private static Adapters DEFAULT
          Default adapters.
private static WeakHashSet MATH_EXPORTS
          A weak hash set for for MathTransformExport objects.
 Adapters PT
          The underlying adapters from the org.deegree_impl.model.pt package.
 
Constructor Summary
protected Adapters(Adapters CS)
          Default constructor.
 
Method Summary
 CT_CoordinateTransformation export(CoordinateTransformation transform)
          Returns an OpenGIS interface for a math transform.
 CT_CoordinateTransformationFactory export(CoordinateTransformationFactory factory)
          Returns an OpenGIS interface for a coordinate transformation factory.
 CT_DomainFlags export(DomainFlags flags)
          Construct an OpenGIS enum from a domain flag.
 CT_MathTransform export(MathTransform transform)
          Returns an OpenGIS interface for a math transform.
 CT_MathTransformFactory export(MathTransformFactory factory)
          Returns an OpenGIS interface for a math transform factory.
 CT_TransformType export(TransformType type)
          Construct an OpenGIS enum from a transform type.
static Adapters getDefault()
          Gets the default adapters.
 CoordinateTransformation wrap(CT_CoordinateTransformation transform)
          Returns a coordinate transform for an OpenGIS interface.
 DomainFlags wrap(CT_DomainFlags flags)
          Construct a domain flag from an OpenGIS enum.
 MathTransform wrap(CT_MathTransform transform)
          Returns a math transform for an OpenGIS interface.
 ParameterList wrap(CT_Parameter[] parameters)
          Returns a parameter list for an array of OpenGIS structure.
 TransformType wrap(CT_TransformType type)
          Construct a transform type from an OpenGIS enum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

private static Adapters DEFAULT
Default adapters. Will be constructed only when first requested.


CS

public final Adapters CS
The underlying adapters from the org.deegree_impl.model.cs package.


PT

public final Adapters PT
The underlying adapters from the org.deegree_impl.model.pt package.


MATH_EXPORTS

private static final WeakHashSet MATH_EXPORTS
A weak hash set for for MathTransformExport objects.

Constructor Detail

Adapters

protected Adapters(Adapters CS)
Default constructor.

Parameters:
CS - The underlying adapters from the org.deegree_impl.model.cs package.
Method Detail

getDefault

public static Adapters getDefault()
Gets the default adapters.


export

public CT_MathTransform export(MathTransform transform)
Returns an OpenGIS interface for a math transform.


export

public CT_CoordinateTransformation export(CoordinateTransformation transform)
Returns an OpenGIS interface for a math transform.


export

public CT_MathTransformFactory export(MathTransformFactory factory)
Returns an OpenGIS interface for a math transform factory.


export

public CT_CoordinateTransformationFactory export(CoordinateTransformationFactory factory)
Returns an OpenGIS interface for a coordinate transformation factory.


export

public CT_TransformType export(TransformType type)
Construct an OpenGIS enum from a transform type.


export

public CT_DomainFlags export(DomainFlags flags)
Construct an OpenGIS enum from a domain flag.


wrap

public MathTransform wrap(CT_MathTransform transform)
                   throws java.rmi.RemoteException
Returns a math transform for an OpenGIS interface.

Throws:
java.rmi.RemoteException - if a remote call failed.

wrap

public CoordinateTransformation wrap(CT_CoordinateTransformation transform)
                              throws java.rmi.RemoteException
Returns a coordinate transform for an OpenGIS interface.

Throws:
java.rmi.RemoteException - if a remote call failed.

wrap

public ParameterList wrap(CT_Parameter[] parameters)
Returns a parameter list for an array of OpenGIS structure.


wrap

public TransformType wrap(CT_TransformType type)
Construct a transform type from an OpenGIS enum.


wrap

public DomainFlags wrap(CT_DomainFlags flags)
Construct a domain flag from an OpenGIS enum.