org.deegree_impl.clients.context
Class ViewContext

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

public class ViewContext
extends AbstractContext
implements Marshallable

is the root class of the Web Map Context

Version:
$Revision: 1.4 $
Author:
Andreas Poth

Field Summary
private  LayerList layerList
           
 
Fields inherited from class org.deegree_impl.clients.context.AbstractContext
 
Constructor Summary
ViewContext(General general, LayerList layerList)
          Creates a new WebMapContext object.
 
Method Summary
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 LayerList getLayerList()
          returns the list of layers contained in this context
 void setLayerList(LayerList layerList)
          sets the list of layers to be contained in this context
 
Methods inherited from class org.deegree_impl.clients.context.AbstractContext
getGeneral, setGeneral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layerList

private LayerList layerList
Constructor Detail

ViewContext

public ViewContext(General general,
                   LayerList layerList)
            throws ContextException
Creates a new WebMapContext object.

Parameters:
general - general informations about the map context and its creator
layerList - layers contained in the web map context
Method Detail

getLayerList

public LayerList getLayerList()
returns the list of layers contained in this context

Returns:

setLayerList

public void setLayerList(LayerList layerList)
                  throws ContextException
sets the list of layers to be contained in this context

Parameters:
layerList -
Throws:
ContextException

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