org.geotools.data.wms
Class SimpleLayer

java.lang.Object
  extended byorg.geotools.data.wms.SimpleLayer

public class SimpleLayer
extends java.lang.Object

A simple bean that represents a layer name paired with a style name for use in requests.

Author:
Richard Gould, Refractions Research Inc.

Constructor Summary
SimpleLayer(java.lang.String name, java.util.Set validStyles)
          SimpleLayer creation.
SimpleLayer(java.lang.String name, java.lang.String style)
          SimpleLayer creation.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getStyle()
           
 java.util.Set getValidStyles()
          Returns a Set of type String containing the names of all the styles that are valid for this layer.
 void setName(java.lang.String name)
           
 void setStyle(java.lang.String style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLayer

public SimpleLayer(java.lang.String name,
                   java.lang.String style)
SimpleLayer creation.

Parameters:
name - Name of layer
style - Name of style, null indicates default.

SimpleLayer

public SimpleLayer(java.lang.String name,
                   java.util.Set validStyles)
SimpleLayer creation.

Parameters:
name -
validStyles -
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getStyle

public java.lang.String getStyle()

setStyle

public void setStyle(java.lang.String style)

getValidStyles

public java.util.Set getValidStyles()
Returns a Set of type String containing the names of all the styles that are valid for this layer.

Returns:


Copyright © GeoTools. All Rights Reserved.