Class SimpleLayer


  • public class SimpleLayer
    extends 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

      Constructors 
      Constructor Description
      SimpleLayer​(String name, String style)
      SimpleLayer creation.
      SimpleLayer​(String name, Set validStyles)
      SimpleLayer creation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getName()  
      String getStyle()  
      Set getValidStyles()
      Returns a Set of type String containing the names of all the styles that are valid for this layer.
      void setName​(String name)  
      void setStyle​(String style)  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleLayer

        public SimpleLayer​(String name,
                           String style)
        SimpleLayer creation.
        Parameters:
        name - Name of layer
        style - Name of style, null indicates default.
      • SimpleLayer

        public SimpleLayer​(String name,
                           Set validStyles)
        SimpleLayer creation.
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getStyle

        public String getStyle()
      • setStyle

        public void setStyle​(String style)
      • getValidStyles

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