source: trunk/src/org/expeditee/gui/AttributeValuePair.java@ 214

Last change on this file since 214 was 214, checked in by ra33, 16 years ago

Added charts

File size: 674 bytes
Line 
1package org.expeditee.gui;
2
3public class AttributeValuePair {
4 private String _attribute = null;
5 private String _value = null;
6
7 public AttributeValuePair(String attribute, String value) {
8 _attribute = attribute;
9 _value = value;
10 }
11
12 public String getAttribute(){
13 return _attribute;
14 }
15
16 public String getValue(){
17 return _value;
18 }
19
20 public Double getDoubleValue() {
21 assert (_value != null);
22
23 try {
24 return Double.parseDouble(_value);
25 } catch (Exception e) {
26 }
27 return null;
28 }
29
30 public Double getDoubleAttribute() {
31 assert (_attribute != null);
32
33 try {
34 return Double.parseDouble(_attribute);
35 } catch (Exception e) {
36 }
37 return null;
38 }
39}
Note: See TracBrowser for help on using the repository browser.