PageRenderTime 30ms CodeModel.GetById 21ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

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