/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
- package org.ala.spatial.util;
- import java.io.Serializable;
- /**
- * Data structure to house database Field attributes.
- *
- * @author Adam Collins
- */
- public class Field extends Object implements Serializable {
- static final long serialVersionUID = 6830737456209385909L;
-
- /**
- * name of column in an associated table
- */
- public String name;
-
- /**
- * text to display in a UI, keep it short
- */
- public String display_name;
-
- /**
- * more detailed text on this field
- */
- public String description;
- /**
- * Constructor to populate this data structure.
- * @param _name name of column in an associated table
- * @param _display_name text to display in a UI, keep it short
- * @param _description more detailed text on this field
- */
- public Field(String _name, String _display_name, String _description) {
- name = _name;
- display_name = _display_name;
- description = _description;
- }
- }