-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replaced various Property class definitions with single SimplePrope…
…rty class * Refactored IDialogStatusListener from relational to ui.common for re-use
- Loading branch information
Showing
17 changed files
with
182 additions
and
343 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
plugins/org.teiid.designer.core/src/org/teiid/designer/core/translators/SimpleProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* | ||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. | ||
* | ||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. | ||
*/ | ||
package org.teiid.designer.core.translators; | ||
|
||
/** | ||
* Simple string name-value pair property object | ||
* | ||
* | ||
*/ | ||
public class SimpleProperty { | ||
private String name; | ||
private String value; | ||
|
||
public SimpleProperty(String name, String value) { | ||
super(); | ||
this.name = name; | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
/** | ||
* @param name | ||
* the name to set | ||
*/ | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* @return the value | ||
*/ | ||
public String getValue() { | ||
return this.value; | ||
} | ||
|
||
/** | ||
* @param value | ||
* the value to set | ||
*/ | ||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @see java.lang.Object#equals(java.lang.Object) | ||
*/ | ||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) { | ||
return true; | ||
} | ||
|
||
if (obj == null) { | ||
return false; | ||
} | ||
|
||
if (!getClass().equals(obj.getClass())) { | ||
return false; | ||
} | ||
|
||
return this.getName().equals(((SimpleProperty) obj).getName()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.