1 package org.catacomb.serial.om; 2 3 import org.catacomb.interlish.structure.Attribute; 4 5 public class OmAttribute implements Attribute { 6 7 8 9 public String name; 10 public String value; 11 12 13 public OmAttribute(String fnm, String fv) { 14 name = fnm; 15 value = fv; 16 } 17 18 public OmAttribute(String fnm, boolean b) { 19 name = fnm; 20 if (b) { 21 value = "true"; 22 } else { 23 value = "false"; 24 } 25 } 26 27 28 public String getName() { 29 return name; 30 } 31 32 public String getValue() { 33 return value; 34 } 35 36 public void setValue(String v) { 37 value = v; 38 } 39 40 }