KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cve > esecutori > components > specificaLV > ElementNonRel


1 /*
2 * @(#)ElementNonRel.java 1.00 22/02/02
3 *
4 * @Author Domenico Ventriglia
5 */

6 package cve.esecutori.components.specificaLV;
7
8 import java.io.*;
9 import java.util.*;
10
11 import org.jdom.*;
12 import org.jdom.input.SAXBuilder;
13 import org.jdom.output.XMLOutputter;
14
15 import org.apache.log4j.Logger;
16
17 import cve.staticLayout.*;
18
19 /**
20 * Questa classe contiene il riferimento ad un elemento non relazione
21 **/

22 public class ElementNonRel extends ElementAlphabet {
23
24    /**
25    *attributi associati ad un elemento nell'altecedente di una regola
26    */

27    private Vector attriAnt;
28
29    public ElementNonRel(Element eleXml,String JavaDoc name) {
30       Cve.errLog.debug("");
31       this.eleXml=eleXml;
32       this.name=name;
33    }
34
35    public ElementNonRel(Element eleXml,String JavaDoc name, String JavaDoc nameId) {
36       this(eleXml,name);
37       Cve.errLog.debug("");
38       this.nameId=nameId;
39    }
40
41    public ElementNonRel(Element eleXml,String JavaDoc name, String JavaDoc nameId,Collection attribute){
42       this(eleXml,name,nameId);
43       Cve.errLog.debug("");
44       attriAnt=new Vector(attribute);
45    }
46
47    public ElementNonRel(Element eleXml,String JavaDoc name, String JavaDoc nameId,Collection attribAnt, Collection attribCons){
48       this(eleXml,name,nameId);
49       Cve.errLog.debug("");
50       if (attribAnt!=null){
51          attributeInAnt=new Vector(attribAnt);
52       }
53       if (attribCons!=null)
54       attributeInCons=new Vector(attribCons);
55    }
56 }
Popular Tags