1 package cve.esecutori.components.specificaLV; 2 3 import java.io.*; 4 import java.util.*; 5 6 import org.jdom.*; 7 8 import org.jdom.input.SAXBuilder; 9 import org.jdom.output.XMLOutputter; 10 11 import cve.staticLayout.*; 12 13 import org.apache.log4j.Logger; 14 15 19 public class Rules implements IRules { 20 23 private Vector rules; 24 private Element assertCVE; 25 26 public Rules(){ 27 Cve.errLog.debug(""); 28 rules=new Vector(); 29 } 30 31 public void setAssert(Element ass){ 32 Cve.errLog.debug(""); 33 assertCVE=ass; 34 } 35 36 public Element getAssert(){ 37 Cve.errLog.debug(""); 38 return assertCVE; 39 } 40 41 public void addRule(Rule rul){ 42 Cve.errLog.debug(""); 43 rules.add(rul); 44 } 45 46 public Collection getRules(){ 47 Cve.errLog.debug(""); 48 return rules; 49 } 50 51 } 52 53 54 | Popular Tags |