1 package org.catacomb.interlish.content; 2 3 4 public class NVPair { 5 6 String name; 7 double value; 8 String sValue; 9 10 11 public NVPair(String sn, double v, String sv) { 12 name = sn; 13 value = v; 14 sValue = sv; 15 } 16 17 18 19 20 21 public String toString() { 22 return name; 23 } 24 25 public String getName() { 26 return name; 27 } 28 29 public double getValue() { 30 return value; 31 } 32 33 public String getSValue() { 34 return sValue; 35 } 36 37 38 public boolean isCalled(String s) { 39 return name.equals(s); 40 } 41 42 public void setValue(double d) { 43 value = d; 44 } 45 46 public void setValue(double d, String sd) { 47 value = d; 48 sValue = sd; 49 } 50 51 }