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

Last change on this file since 157 was 157, checked in by ra33, 16 years ago
File size: 504 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}
Note: See TracBrowser for help on using the repository browser.