/webportal/src/main/java/org/ala/spatial/util/ListEntry.java

http://alageospatialportal.googlecode.com/ · Java · 46 lines · 32 code · 6 blank · 8 comment · 2 complexity · 32c7539c1fdb1a346fe820248155cdc3 MD5 · raw file

  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package org.ala.spatial.util;
  6. import net.sf.json.JSONObject;
  7. /**
  8. *
  9. * @author Adam
  10. */
  11. public class ListEntry {
  12. public String name;
  13. public String displayname;
  14. public String catagory1;
  15. public String catagory2;
  16. public String type;
  17. public float value;
  18. public JSONObject layerObject;
  19. public String domain;
  20. public ListEntry(String name_, String displayname_, String catagory1_, String catagory2_, String type_, String domain, JSONObject layerObject) {
  21. name = name_;
  22. catagory1 = catagory1_;
  23. catagory2 = catagory2_;
  24. displayname = displayname_;
  25. type = type_;
  26. this.layerObject = layerObject;
  27. this.domain = domain;
  28. value = 0;
  29. }
  30. public ListEntry(String string, String displayName, String string0, String string1, String string2, Object object) {
  31. throw new UnsupportedOperationException("Not yet implemented");
  32. }
  33. public String catagoryNames() {
  34. if (catagory2.length() > 0) {
  35. return " " + catagory1 + "; " + catagory2;
  36. } else {
  37. return " " + catagory1;
  38. }
  39. }
  40. }