1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / util / OneLevelConverter.java
1 /*
2  * Created on 11/08/2003
3  *
4  */
5 package com.quantum.util;
6
7 import java.util.Vector;
8
9 /**
10  * "record" class that holds an identifier and the resulting
11  * string. This string comes from applying rules to the identifier
12  * Also, can have a vector of lower-level classifiers.
13  * 
14  * @author panic
15  *
16  */
17 public class OneLevelConverter {
18         private String id = "";
19         private String result = "";
20         private Vector lower = null;
21         
22         OneLevelConverter(String id) {
23                 this.id = id;
24         }
25         
26         // Getters and setters
27         /**
28          * @return
29          */
30         public String getId() {
31                 return id;
32         }
33
34         /**
35          * @return
36          */
37         public Vector getLower() {
38                 return lower;
39         }
40
41         /**
42          * @return
43          */
44         public String getResult() {
45                 return result;
46         }
47
48         /**
49          * @param string
50          */
51         public void setId(String string) {
52                 id = string;
53         }
54
55         /**
56          * @param vector
57          */
58         public void setLower(Vector vector) {
59                 lower = vector;
60         }
61
62         /**
63          * @param string
64          */
65         public void setResult(String string) {
66                 result = string;
67         }
68
69         /* (non-Javadoc)
70          * @see java.lang.Object#equals(java.lang.Object)
71          */
72         public boolean equals(Object obj) {
73                 if (!(obj instanceof OneLevelConverter)) return false;
74                 return this.id.equals(((OneLevelConverter)obj).id);
75         }
76
77 }