/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

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