/**
* @author BC
*/
-public class Schema implements Comparable {
+public class Schema implements Comparable, Displayable {
private String name;
private String displayName;
private boolean isDefault;
-
+ private boolean exists = true;
public Schema() {
}
* @return
*/
public String getName() {
- return name;
+ return this.name;
}
/**
* @param string
*/
- public void setName(String string) {
- name = string;
+ public void setName(String name) {
+ this.name = name;
}
/**
}
}
public int hashCode() {
- int hashCode = super.hashCode();
+ int hashCode = 51;
if (this.name != null) {
hashCode ^= this.name.hashCode();
}
* @return
*/
public boolean isDefault() {
- return isDefault;
+ return this.isDefault;
}
/**
* @return
*/
public String getDisplayName() {
- return displayName;
+ return this.displayName;
}
/**
* @param string
*/
- public void setDisplayName(String string) {
- displayName = string;
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
}
+ public boolean exists() {
+ return this.exists;
+ }
+
+ void setExists(boolean exists) {
+ this.exists = exists;
+ }
+
+ public String toString() {
+ return this.displayName == null ? this.name : this.displayName;
+ }
}