/alaspatial/src/main/java/org/ala/spatial/util/Field.java

http://alageospatialportal.googlecode.com/ · Java · 41 lines · 13 code · 8 blank · 20 comment · 0 complexity · c10cf0d78ce25afb7184d5b4dc2ab7c9 MD5 · raw file

  1. package org.ala.spatial.util;
  2. import java.io.Serializable;
  3. /**
  4. * Data structure to house database Field attributes.
  5. *
  6. * @author Adam Collins
  7. */
  8. public class Field extends Object implements Serializable {
  9. static final long serialVersionUID = 6830737456209385909L;
  10. /**
  11. * name of column in an associated table
  12. */
  13. public String name;
  14. /**
  15. * text to display in a UI, keep it short
  16. */
  17. public String display_name;
  18. /**
  19. * more detailed text on this field
  20. */
  21. public String description;
  22. /**
  23. * Constructor to populate this data structure.
  24. * @param _name name of column in an associated table
  25. * @param _display_name text to display in a UI, keep it short
  26. * @param _description more detailed text on this field
  27. */
  28. public Field(String _name, String _display_name, String _description) {
  29. name = _name;
  30. display_name = _display_name;
  31. description = _description;
  32. }
  33. }