cleanup, commented-out final compilation issues. Still need to actually clean out the old property mgmt code once the new checked & finished.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6690 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -21,15 +21,15 @@ public class RulePropertiesContentProvider extends AbstractStructuredContentProv
|
||||
*/
|
||||
public Object[] getElements(Object inputElement) {
|
||||
|
||||
if (inputElement instanceof Rule) {
|
||||
Rule rule = (Rule) inputElement;
|
||||
Enumeration<String> keys = rule.getProperties().keys();
|
||||
List<RuleProperty> propertyList = new ArrayList<RuleProperty>();
|
||||
while (keys.hasMoreElements()) {
|
||||
propertyList.add(new RuleProperty(rule, keys.nextElement()));
|
||||
}
|
||||
return propertyList.toArray();
|
||||
}
|
||||
// if (inputElement instanceof Rule) {
|
||||
// Rule rule = (Rule) inputElement;
|
||||
// Enumeration<String> keys = rule.getProperties().keys();
|
||||
// List<RuleProperty> propertyList = new ArrayList<RuleProperty>();
|
||||
// while (keys.hasMoreElements()) {
|
||||
// propertyList.add(new RuleProperty(rule, keys.nextElement()));
|
||||
// }
|
||||
// return propertyList.toArray();
|
||||
// }
|
||||
|
||||
return Util.EMPTY_ARRAY;
|
||||
}
|
||||
|
@ -20,30 +20,6 @@ public class RuleProperty {
|
||||
property = key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the booleanValue.
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean isBooleanValue() {
|
||||
return rule.getBooleanProperty(property);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the doubleValue.
|
||||
* @return double
|
||||
*/
|
||||
public double getDoubleValue() {
|
||||
return rule.getDoubleProperty(property);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the integerValue.
|
||||
* @return int
|
||||
*/
|
||||
public int getIntegerValue() {
|
||||
return rule.getIntProperty(property);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the property.
|
||||
* @return String
|
||||
@ -57,31 +33,7 @@ public class RuleProperty {
|
||||
* @return String
|
||||
*/
|
||||
public String getValue() {
|
||||
return rule.getStringProperty(property);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the booleanValue.
|
||||
* @param booleanValue The booleanValue to set
|
||||
*/
|
||||
public void setBooleanValue(boolean booleanValue) {
|
||||
rule.getProperties().setProperty(property, String.valueOf(booleanValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the doubleValue.
|
||||
* @param doubleValue The doubleValue to set
|
||||
*/
|
||||
public void setDoubleValue(double doubleValue) {
|
||||
rule.getProperties().setProperty(property, String.valueOf(doubleValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the integerValue.
|
||||
* @param integerValue The integerValue to set
|
||||
*/
|
||||
public void setIntegerValue(int integerValue) {
|
||||
rule.getProperties().setProperty(property, String.valueOf(integerValue));
|
||||
return "void"; //rule.getProperty(property);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -89,7 +41,7 @@ public class RuleProperty {
|
||||
* @param value The value to set
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
rule.getProperties().setProperty(property, value);
|
||||
// rule.getProperties().setProperty(property, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user