org.deegree_impl.clients.context
Class Layer

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

public class Layer
extends java.lang.Object
implements Marshallable

encapsulates about a layer described/contained by a Web Map Context

Version:
$Revision: 1.3 $
Author:
Andreas Poth

Field Summary
private  java.lang.String abstract_
           
private  BaseURL dataURL
           
private  Marshallable extension
           
private  FormatList formatList
           
private  boolean hidden
           
private  BaseURL metadataURL
           
private  java.lang.String name
           
private  boolean queryable
           
private  Server server
           
private  java.lang.String[] srs
           
private  StyleList styleList
           
private  java.lang.String title
           
 
Constructor Summary
Layer(Server server, java.lang.String name, java.lang.String title, java.lang.String abstract_, java.lang.String[] srs, BaseURL dataURL, BaseURL metadataURL, FormatList formatList, StyleList styleList, boolean queryable, boolean hidden, Marshallable extension)
          Creates a new ContextLayer object.
 
Method Summary
 java.lang.String exportAsXML()
          returns a XML-representation of the Layer
 java.lang.String getAbstract()
          The abstract of the selected layer (extracted from Capabilities by the Context document creator).
 BaseURL getDataURL()
          This element contains a link to an online resource where data corresponding to the layer can be found.
 Marshallable getExtension()
          The Extension element is a container tag in which arbitrary vendor specific information can be included without compromising the ability of other clients to enforce schema validation.
 FormatList getFormatList()
          The parent element containing the list of available image format for this layer.
 BaseURL getMetadataURL()
          This element contains a link to an online resource where descriptive metadata corresponding to the layer can be found.
 java.lang.String getName()
          The name of the selected layer (extracted from Capabilities by the Context document creator).
 Server getServer()
          The element defining the service from which the named Layer may be requested
 java.lang.String[] getSrs()
          A list of available SRS for the enclosing layer.
 StyleList getStyleList()
          The parent element containing the list of available styles for this layer.
 java.lang.String getTitle()
          The title of the selected layer (extracted from Capabilities by the Context document creator).
 boolean isHidden()
          returns true if the layer is not visible in the current view
 boolean isQueryable()
          returns true if the layer can be queried with a GetFeatureInfo request
 void setAbstract(java.lang.String abstract_)
           
 void setDataURL(BaseURL dataURL)
           
 void setExtension(Marshallable extension)
           
 void setFormatList(FormatList formatList)
           
 void setHidden(boolean hidden)
           
 void setMetadataURL(BaseURL metadataURL)
           
 void setName(java.lang.String name)
           
 void setQueryable(boolean queryable)
           
 void setServer(Server server)
           
 void setSrs(java.lang.String[] srs)
           
 void setStyleList(StyleList styleList)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataURL

private BaseURL dataURL

metadataURL

private BaseURL metadataURL

formatList

private FormatList formatList

extension

private Marshallable extension

server

private Server server

abstract_

private java.lang.String abstract_

name

private java.lang.String name

title

private java.lang.String title

styleList

private StyleList styleList

srs

private java.lang.String[] srs

hidden

private boolean hidden

queryable

private boolean queryable
Constructor Detail

Layer

public Layer(Server server,
             java.lang.String name,
             java.lang.String title,
             java.lang.String abstract_,
             java.lang.String[] srs,
             BaseURL dataURL,
             BaseURL metadataURL,
             FormatList formatList,
             StyleList styleList,
             boolean queryable,
             boolean hidden,
             Marshallable extension)
      throws ContextException
Creates a new ContextLayer object.

Parameters:
server - service from which the named Layer may be requested
name - name of the selected layer (
title - title of the selected layer (
abstract_ - abstract of the selected layer (
srs - list of available SRS for the enclosing layer.
dataURL - contains a link to an online resource where data corresponding to the layer can be found.
metadataURL - contains a link to an online resource where descriptive metadata corresponding to the layer can be found.
formatList - parent element containing the list of available image format for this layer.
styleList - parent element containing the list of available styles for this layer.
extension - container tag in which arbitrary vendor specific information can be included
Throws:
ContextException
Method Detail

getServer

public Server getServer()
The element defining the service from which the named Layer may be requested

Returns:

getName

public java.lang.String getName()
The name of the selected layer (extracted from Capabilities by the Context document creator).

Returns:

getTitle

public java.lang.String getTitle()
The title of the selected layer (extracted from Capabilities by the Context document creator).

Returns:

getAbstract

public java.lang.String getAbstract()
The abstract of the selected layer (extracted from Capabilities by the Context document creator).

Returns:

getSrs

public java.lang.String[] getSrs()
A list of available SRS for the enclosing layer. One of the listed SRS’s must be the SRS mentioned in the ViewerContext/General/BoundingBox@SRS element.

Returns:

getDataURL

public BaseURL getDataURL()
This element contains a link to an online resource where data corresponding to the layer can be found.

Returns:

getMetadataURL

public BaseURL getMetadataURL()
This element contains a link to an online resource where descriptive metadata corresponding to the layer can be found.

Returns:

getFormatList

public FormatList getFormatList()
The parent element containing the list of available image format for this layer. Image formats should be expressed with MIME types as described in WMS 1.1.1 Specification.

A FormatList shall include at least one Format

Returns:

getStyleList

public StyleList getStyleList()
The parent element containing the list of available styles for this layer. A StyleList shall include at least one Style

Returns:

getExtension

public Marshallable getExtension()
The Extension element is a container tag in which arbitrary vendor specific information can be included without compromising the ability of other clients to enforce schema validation.

Returns:

isQueryable

public boolean isQueryable()
returns true if the layer can be queried with a GetFeatureInfo request

Returns:

isHidden

public boolean isHidden()
returns true if the layer is not visible in the current view

Returns:

setServer

public void setServer(Server server)
               throws ContextException
Parameters:
server -
Throws:
ContextException

setName

public void setName(java.lang.String name)
             throws ContextException
Parameters:
name -
Throws:
ContextException

setTitle

public void setTitle(java.lang.String title)
              throws ContextException
Parameters:
title -
Throws:
ContextException

setAbstract

public void setAbstract(java.lang.String abstract_)
Parameters:
abstract_ -

setSrs

public void setSrs(java.lang.String[] srs)
Parameters:
srs -

setDataURL

public void setDataURL(BaseURL dataURL)
Parameters:
dataURL -

setMetadataURL

public void setMetadataURL(BaseURL metadataURL)
Parameters:
metadataURL -

setFormatList

public void setFormatList(FormatList formatList)
Parameters:
formatList -

setStyleList

public void setStyleList(StyleList styleList)
Parameters:
styleList -

setQueryable

public void setQueryable(boolean queryable)
Parameters:
queryable -

setHidden

public void setHidden(boolean hidden)
Parameters:
hidden -

setExtension

public void setExtension(Marshallable extension)
Parameters:
extension -

exportAsXML

public java.lang.String exportAsXML()
returns a XML-representation of the Layer

Specified by:
exportAsXML in interface Marshallable
Returns: