org.deegree_impl.clients.context
Class DataService

java.lang.Object
  extended byorg.deegree_impl.clients.context.DataService
All Implemented Interfaces:
Marshallable

public class DataService
extends java.lang.Object
implements Marshallable

describes the service lying behind a WMS layer. This can be a WFS, a WCS or a cascaded WMS. If the dataservice is a WFS an instance of this class also provides informations about the geometry type delivered by the WFS for this assigned feature type. If the service is a WCS the geometry type attribute contains the type of coverage assigned to the layer (Grid, TIN, Thiessen polygon ...)

Version:
$Revision: 1.2 $
Author:
Andreas Poth

Field Summary
private  java.lang.String featureType
           
private  java.lang.String geometryType
           
private  Server server
           
 
Constructor Summary
DataService(Server server, java.lang.String featureType, java.lang.String geometryType)
          Creates a new DataService object.
 
Method Summary
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 java.lang.String getFeatureType()
          returns the featuretype assigned to the WMS layer if the server behind it is a WFS
 java.lang.String getGeometryType()
          returns the geometry type or coverage type provided by the server behind a WMS layer if the server is a WFS or a WCS
 Server getServer()
          returns the an instance of an object describing the service/server behind a WMS layer
 void setFeatureType(java.lang.String featureType)
          sets the featuretype assigned to the WMS layer if the server behind it is a WFS
 void setGeometryType(java.lang.String geometryType)
          sets the geometry type or coverage type provided by the server behind a WMS layer if the server is a WFS or a WCS
 void setServer(Server server)
          sets the an instance of an object describing the service/server behind a WMS layer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

private Server server

featureType

private java.lang.String featureType

geometryType

private java.lang.String geometryType
Constructor Detail

DataService

public DataService(Server server,
                   java.lang.String featureType,
                   java.lang.String geometryType)
Creates a new DataService object.

Parameters:
server - server description
featureType - feature type provided by the server if it's a WFS
geometryType - geometry type or coverage type if the server is a WFS or a WCS
Method Detail

getServer

public Server getServer()
returns the an instance of an object describing the service/server behind a WMS layer

Returns:
instance of Server

setServer

public void setServer(Server server)
sets the an instance of an object describing the service/server behind a WMS layer

Parameters:
server - server description

getFeatureType

public java.lang.String getFeatureType()
returns the featuretype assigned to the WMS layer if the server behind it is a WFS

Returns:

setFeatureType

public void setFeatureType(java.lang.String featureType)
sets the featuretype assigned to the WMS layer if the server behind it is a WFS

Parameters:
featureType -

getGeometryType

public java.lang.String getGeometryType()
returns the geometry type or coverage type provided by the server behind a WMS layer if the server is a WFS or a WCS

Returns:

setGeometryType

public void setGeometryType(java.lang.String geometryType)
sets the geometry type or coverage type provided by the server behind a WMS layer if the server is a WFS or a WCS

Parameters:
geometryType -

exportAsXML

public java.lang.String exportAsXML()
Description copied from interface: Marshallable
Produces an XML-representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object