X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/util/OneLevelConverter.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/util/OneLevelConverter.java new file mode 100644 index 0000000..8763cd5 --- /dev/null +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/util/OneLevelConverter.java @@ -0,0 +1,77 @@ +/* + * Created on 11/08/2003 + * + */ +package com.quantum.util; + +import java.util.Vector; + +/** + * "record" class that holds an identifier and the resulting + * string. This string comes from applying rules to the identifier + * Also, can have a vector of lower-level classifiers. + * + * @author panic + * + */ +public class OneLevelConverter { + private String id = ""; + private String result = ""; + private Vector lower = null; + + OneLevelConverter(String id) { + this.id = id; + } + + // Getters and setters + /** + * @return + */ + public String getId() { + return id; + } + + /** + * @return + */ + public Vector getLower() { + return lower; + } + + /** + * @return + */ + public String getResult() { + return result; + } + + /** + * @param string + */ + public void setId(String string) { + id = string; + } + + /** + * @param vector + */ + public void setLower(Vector vector) { + lower = vector; + } + + /** + * @param string + */ + public void setResult(String string) { + result = string; + } + + /* (non-Javadoc) + * @see java.lang.Object#equals(java.lang.Object) + */ + public boolean equals(Object obj) { + if (!(obj instanceof OneLevelConverter)) return false; + return this.id.equals(((OneLevelConverter)obj).id); + } + +}