org.deegree_impl.clients.context
Class LayerList

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

public class LayerList
extends java.lang.Object
implements Marshallable

Version:
$Revision: 1.3 $
Author:
Andreas Poth

Field Summary
private  java.util.HashMap layers
           
private  java.util.List list
           
 
Constructor Summary
LayerList(Layer[] layers)
          Creates a new LayerList object.
 
Method Summary
 void addLayer(Layer layer)
          adds one layer to the the web map context.
 void clear()
          removes all layers from the web map context
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 Layer getLayer(java.lang.String name)
          returns a layer identifies by its name
 Layer[] getLayers()
          returns all layers of the web map context
 Layer removeLayer(java.lang.String name)
          removes a layer identified by its name from the web map context
 void setLayers(Layer[] layers)
          sets all layers of the web map context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layers

private java.util.HashMap layers

list

private java.util.List list
Constructor Detail

LayerList

public LayerList(Layer[] layers)
Creates a new LayerList object.

Parameters:
layers -
Method Detail

getLayer

public Layer getLayer(java.lang.String name)
returns a layer identifies by its name

Parameters:
name - name ofthe layer
Returns:

getLayers

public Layer[] getLayers()
returns all layers of the web map context

Returns:

setLayers

public void setLayers(Layer[] layers)
sets all layers of the web map context

Parameters:
layers -

addLayer

public void addLayer(Layer layer)
adds one layer to the the web map context. If a layer with the same name as the passed layer already exits it will be overwritten

Parameters:
layer -

removeLayer

public Layer removeLayer(java.lang.String name)
removes a layer identified by its name from the web map context

Parameters:
name - name of the layer to be removed
Returns:

clear

public void clear()
removes all layers from the web map context


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