PageRenderTime 19ms CodeModel.GetById 1ms app.highlight 12ms RepoModel.GetById 2ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/wms/WMSStyle.java

http://alageospatialportal.googlecode.com/
Java | 109 lines | 58 code | 19 blank | 32 comment | 0 complexity | 1d83ba5c2157ceb5f86a7728338b5a0a MD5 | raw file
  1package au.org.emii.portal.wms;
  2
  3import au.org.emii.portal.menu.MapLayer;
  4import java.io.Serializable;
  5
  6/**
  7 * Representation of WMS style information.
  8 * 
  9 * IMPORTANT - PLEASE READ!
 10 * If you add/change any fields in this class, you MUST update the 
 11 * deepCopy method or you will get 'mysterious failures' when you
 12 * come to use the class.
 13 * 
 14 * @author geoff
 15 *
 16 */
 17public class WMSStyle implements Cloneable, Serializable {
 18
 19    /**
 20     *
 21     */
 22    private static final long serialVersionUID = 1L;
 23    /**
 24     * id for the to enable Hibernate Serialization
 25     */
 26    private long id = 0;
 27    /**
 28     * name of style as known to the server
 29     */
 30    private String name = null;
 31    /**
 32     * title of style for display to user
 33     */
 34    private String title = null;
 35    /**
 36     * longer human readable description of style (abstract)
 37     */
 38    private String description = null;
 39    /**
 40     * URI of where to obtain a map legend from (legendURL)
 41     */
 42    private String legendUri = null;
 43    /**
 44     * image format of legendUri
 45     */
 46    private String legendFormat = null;
 47
 48    private long maplayerid;
 49
 50    public long getMaplayerid() {
 51        return maplayerid;
 52    }
 53
 54    public void setMaplayerid(long maplayerid) {
 55        this.maplayerid = maplayerid;
 56    }
 57
 58    public long getId() {
 59        return id;
 60    }
 61
 62    public void setId(long id) {
 63        this.id = id;
 64    }
 65
 66    public String getName() {
 67        return name;
 68    }
 69
 70    public void setName(String name) {
 71        this.name = name;
 72    }
 73
 74    public String getTitle() {
 75        return title;
 76    }
 77
 78    public void setTitle(String title) {
 79        this.title = title;
 80    }
 81
 82    public String getDescription() {
 83        return description;
 84    }
 85
 86    public void setDescription(String description) {
 87        this.description = description;
 88    }
 89
 90    public String getLegendUri() {
 91        return legendUri;
 92    }
 93
 94    public void setLegendUri(String legendUri) {
 95        this.legendUri = legendUri;
 96    }
 97
 98    public String getLegendFormat() {
 99        return legendFormat;
100    }
101
102    public void setLegendFormat(String legendFormat) {
103        this.legendFormat = legendFormat;
104    }
105
106    public Object clone() throws CloneNotSupportedException {
107        return super.clone();
108    }
109}