1 18 19 20 package sync4j.framework.core; 21 22 import java.util.*; 23 24 32 public final class Ext 33 implements java.io.Serializable { 34 35 private String xNam; 37 private ArrayList xVal = new ArrayList(); 38 39 44 public Ext() {} 45 46 54 public Ext(final String xNam, final String [] xVal) { 55 setXNam(xNam); 56 setXVal(xVal); 57 } 58 59 65 public String getXNam() { 66 return xNam; 67 } 68 69 75 public void setXNam(String xNam) { 76 if (xNam == null) { 77 throw new IllegalArgumentException ("XNam cannot be null"); 78 } 79 this.xNam = xNam; 80 } 81 82 87 public ArrayList getXVal() { 88 return xVal; 89 } 90 91 97 public void setXVal(String [] xVal) { 98 if (xVal == null) { 99 throw new IllegalArgumentException ("xVal cannot be null"); 100 } 101 this.xVal.clear(); 102 this.xVal.addAll(Arrays.asList(xVal)); 103 } 104 } | Popular Tags |