org.deegree_impl.clients.context
Class LayerExtension

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

public class LayerExtension
extends java.lang.Object
implements Marshallable

provides additional information about a layer described in a web map context document. Additional description is not requiered so an instance of org.deegree_impl.clients.context.Layer may doesn't provide an instance of this class.

Version:
$Revision: 1.4 $
Author:
Andreas Poth

Field Summary
private  DataService dataService
           
private  boolean masterLayer
           
 
Constructor Summary
LayerExtension(DataService dataService, boolean masterLayer)
          Creates a new LayerExtension object.
 
Method Summary
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 DataService getDataService()
          returns a description of the service/server behind a WMS layer.
 boolean isMasterLayer()
          returns true if a layer is one of the main layers of an application; returns false if it just provides background or additional informations.
 void setDataService(DataService dataService)
          sets a description of the service/server behind a WMS layer.
 void setMasterLayer(boolean masterLayer)
          set to true if a layer is one of the main layers of an application; set to false if it just provides background or additional informations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataService

private DataService dataService

masterLayer

private boolean masterLayer
Constructor Detail

LayerExtension

public LayerExtension(DataService dataService,
                      boolean masterLayer)
Creates a new LayerExtension object.

Parameters:
dataService - description of the service/server behind a WMS layer
masterLayer - true if a layer is one of the main layers of an application; false if it just provides background or additional informations.
Method Detail

getDataService

public DataService getDataService()
returns a description of the service/server behind a WMS layer. The returned value will be null if the WMS uses an internal mechanism to access a layers data.

Returns:
instance of DataService

setDataService

public void setDataService(DataService dataService)
sets a description of the service/server behind a WMS layer. The returned value will be null if the WMS uses an internal mechanism to access a layers data.

Parameters:
dataService -

isMasterLayer

public boolean isMasterLayer()
returns true if a layer is one of the main layers of an application; returns false if it just provides background or additional informations.

Returns:

setMasterLayer

public void setMasterLayer(boolean masterLayer)
set to true if a layer is one of the main layers of an application; set to false if it just provides background or additional informations.

Parameters:
masterLayer -

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: