1 package cve.esecutori.components.specificaLV; 2 3 import java.io.*; 4 import java.util.*; 5 6 import org.jdom.*; 7 import org.jdom.input.SAXBuilder; 8 import org.jdom.output.XMLOutputter; 9 10 import cve.staticLayout.*; 11 import org.apache.log4j.Logger; 12 13 16 public class Rule implements IRule { 17 21 private Vector precondition; 22 23 27 private Vector conseguent; 28 29 33 private Vector postfree; 34 35 38 private ElementRel rel; 39 40 43 private Vector condition; 44 45 48 private String type; 49 50 53 private String comment; 54 55 58 private String id; 59 60 63 private Vector source; 64 65 68 private Vector target; 69 70 74 private Vector assignmentCons; 75 76 81 83 88 90 public Rule() { 91 Cve.errLog.debug(""); 92 condition=new Vector(); 93 conseguent=new Vector(); 94 postfree=new Vector(); 95 precondition=new Vector(); 96 source=new Vector(); 97 target=new Vector(); 98 assignmentCons=new Vector(); 99 } 102 103 public void addAssignmentCons(Element assignment){ 104 Cve.errLog.debug(""); 105 assignmentCons.add(assignment); 106 } 107 108 public Collection getAssignmentCons(){ 109 Cve.errLog.debug(""); 110 return assignmentCons; 111 } 112 113 public String getType(){ 114 Cve.errLog.debug(""); 115 return type; 116 } 117 118 public void setType(String type){ 119 Cve.errLog.debug(""); 120 this.type=type; 121 } 122 123 public String getComment(){ 124 Cve.errLog.debug(""); 125 return comment; 126 } 127 128 public void setComment(String com){ 129 Cve.errLog.debug(""); 130 this.comment=com; 131 } 132 133 public String getId(){ 134 Cve.errLog.debug(""); 135 return id; 136 } 137 138 public void setId(String id){ 139 Cve.errLog.debug(""); 140 this.id=id; 141 } 142 143 public void addCondition(Element cond){ 144 Cve.errLog.debug(""); 145 condition.add(cond); 146 } 147 148 public Collection getCondition(){ 149 Cve.errLog.debug(""); 150 return condition; 151 } 152 153 public void addPrecondition(ElementAlphabet ele){ 154 Cve.errLog.debug(""); 155 precondition.add(ele); 156 } 157 158 public Collection getPrecondition(){ 159 Cve.errLog.debug(""); 160 return precondition; 161 } 162 163 public void addConseguent(ElementAlphabet ele){ 164 Cve.errLog.debug(""); 165 conseguent.add(ele); 166 } 167 168 public Collection getConseguent(){ 169 Cve.errLog.debug(""); 170 return conseguent; 171 } 172 173 public void addPostFree(ElementAlphabet ele){ 174 Cve.errLog.debug(""); 175 postfree.add(ele); 176 } 177 178 public Collection getPostFree(){ 179 Cve.errLog.debug(""); 180 return postfree; 181 } 182 183 public ElementRel getRel(){ 184 Cve.errLog.debug(""); 185 return rel; 186 } 187 188 public void setRel(ElementRel rel){ 189 Cve.errLog.debug(""); 190 this.rel=rel; 191 } 192 193 public void addSource(ElementAlphabet ele){ 194 Cve.errLog.debug(""); 195 source.add(ele); 196 } 197 198 public Collection getSource(){ 199 Cve.errLog.debug(""); 200 return source; 201 } 202 203 public void addTarget(ElementAlphabet ele){ 204 Cve.errLog.debug(""); 205 target.add(ele); 206 } 207 208 public Collection getTarget(){ 209 Cve.errLog.debug(""); 210 return target; 211 } 212 213 } 214 215 | Popular Tags |