1 18 19 20 package sync4j.framework.core; 21 22 import java.util.*; 23 24 31 public final class CTTypeSupported 32 implements java.io.Serializable { 33 34 private String ctType; 36 private ArrayList ctPropParams = new ArrayList(); 37 38 40 protected CTTypeSupported() {} 41 42 50 public CTTypeSupported(final String ctType, 51 final CTPropParam[] ctPropParams ) { 52 setCTType(ctType); 53 setCTPropParams(ctPropParams); 54 } 55 56 58 63 public String getCTType() { 64 return this.ctType; 65 } 66 67 72 public void setCTType(String ctType) { 73 if (ctType == null || ctType.length() == 0) { 74 throw new IllegalArgumentException ("ctType cannot be null"); 75 } 76 this.ctType = ctType; 77 } 78 79 85 public ArrayList getCTPropParams() { 86 return this.ctPropParams; 87 } 88 89 95 public void setCTPropParams(CTPropParam[] ctPropParams) { 96 if (ctPropParams == null) { 97 throw new IllegalArgumentException ("ctPropParams cannot be null"); 98 } 99 this.ctPropParams.clear(); 100 this.ctPropParams.addAll(Arrays.asList(ctPropParams)); 101 } 102 } 103 | Popular Tags |