Author: jtravis
Date: 2007-03-12 12:27:21 -0800 (Mon, 12 Mar 2007)
New Revision: 3704
URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3704
Modified:
trunk/src/org/hyperic/hq/common/ConfigProperty.java
Log:
Cleanup
Modified: trunk/src/org/hyperic/hq/common/ConfigProperty.java
===================================================================
--- trunk/src/org/hyperic/hq/common/ConfigProperty.java 2007-03-12 20:25:36 UTC (rev 3703)
+++ trunk/src/org/hyperic/hq/common/ConfigProperty.java 2007-03-12 20:27:21 UTC (rev 3704)
@@ -27,114 +27,86 @@
import org.hyperic.hibernate.PersistedObject;
-/**
- * ConfigProperty generated by hbm2java
- */
-public class ConfigProperty extends PersistedObject
+public class ConfigProperty
+ extends PersistedObject
{
- // Fields
- private String prefix;
- private String key;
- private String value;
- private String defaultValue;
- private boolean readOnly = false;
+ private String _prefix;
+ private String _key;
+ private String _value;
+ private String _defaultValue;
+ private boolean _readOnly = false;
- // Constructors
-
- /**
- * default constructor
- */
- public ConfigProperty()
- {
- super();
+ public ConfigProperty() {
}
- // Property accessors
-
- public String getPrefix()
- {
- return this.prefix;
+ public String getPrefix() {
+ return _prefix;
}
- public void setPrefix(String prefix)
- {
- this.prefix = prefix;
+ public void setPrefix(String prefix) {
+ _prefix = prefix;
}
- public String getKey()
- {
- return this.key;
+ public String getKey() {
+ return _key;
}
- public void setKey(String propKey)
- {
- this.key = propKey;
+ public void setKey(String propKey) {
+ _key = propKey;
}
- public String getValue()
- {
- return this.value;
+ public String getValue() {
+ return _value;
}
- public void setValue(String propValue)
- {
- this.value = propValue;
+ public void setValue(String propValue) {
+ _value = propValue;
}
- public String getDefaultValue()
- {
- return this.defaultValue;
+ public String getDefaultValue() {
+ return _defaultValue;
}
- public void setDefaultValue(String defaultPropValue)
- {
- this.defaultValue = defaultPropValue;
+ public void setDefaultValue(String defaultPropValue) {
+ _defaultValue = defaultPropValue;
}
- public boolean isReadOnly()
- {
- return this.readOnly;
+ public boolean isReadOnly() {
+ return _readOnly;
}
/**
* @deprecated use isReadOnly()
- * @return
*/
- public boolean getReadOnly()
- {
+ public boolean getReadOnly() {
return isReadOnly();
}
- public void setReadOnly(boolean flag)
- {
- this.readOnly = flag;
+ public void setReadOnly(boolean flag) {
+ _readOnly = flag;
}
- public boolean equals(Object obj)
- {
+ public boolean equals(Object obj) {
if (!(obj instanceof ConfigProperty) || !super.equals(obj)) {
return false;
}
ConfigProperty o = (ConfigProperty) obj;
return
- ((prefix == o.getPrefix()) ||
- (prefix != null && o.getPrefix() != null &&
- prefix.equals(o.getPrefix())))
+ ((_prefix == o.getPrefix()) ||
+ (_prefix != null && o.getPrefix() != null &&
+ _prefix.equals(o.getPrefix())))
&&
- ((key == o.getKey()) ||
- (key != null && o.getKey() != null &&
- key.equals(o.getKey())));
+ ((_key == o.getKey()) ||
+ (_key != null && o.getKey() != null &&
+ _key.equals(o.getKey())));
}
- public int hashCode()
- {
+ public int hashCode() {
int result = super.hashCode();
- result = 37*result + (prefix != null ? prefix.hashCode() : 0);
- result = 37*result + (key != null ? key.hashCode() : 0);
+ result = 37*result + (_prefix != null ? _prefix.hashCode() : 0);
+ result = 37*result + (_key != null ? _key.hashCode() : 0);
return result;
}
}
-
-
|