PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 6package org.ala.spatial.util;
 7
 8import net.sf.json.JSONObject;
 9
10/**
11 *
12 * @author Adam
13 */
14public class ListEntry {
15    public String name;
16    public String displayname;
17    public String catagory1;
18    public String catagory2;
19    public String type;
20    public float value;
21    public JSONObject layerObject;
22    public String domain;
23
24    public ListEntry(String name_, String displayname_, String catagory1_, String catagory2_, String type_, String domain, JSONObject layerObject) {
25        name = name_;
26        catagory1 = catagory1_;
27        catagory2 = catagory2_;
28        displayname = displayname_;
29        type = type_; 
30        this.layerObject = layerObject;
31        this.domain = domain;
32        value = 0;
33    }
34
35    public ListEntry(String string, String displayName, String string0, String string1, String string2, Object object) {
36        throw new UnsupportedOperationException("Not yet implemented");
37    }
38
39    public String catagoryNames() {
40        if (catagory2.length() > 0) {
41            return " " + catagory1 + "; " + catagory2;
42        } else {
43            return " " + catagory1;
44        }
45    }
46}