Java Code Examples for org.springframework.util.StringUtils.deleteAny()

The following are Jave code examples for showing how to use deleteAny() of the org.springframework.util.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: lams   File: StringTrimmerEditor.java   View Source Code Vote up 6 votes
@Override
public void setAsText(String text) {
	if (text == null) {
		setValue(null);
	}
	else {
		String value = text.trim();
		if (this.charsToDelete != null) {
			value = StringUtils.deleteAny(value, this.charsToDelete);
		}
		if (this.emptyAsNull && "".equals(value)) {
			setValue(null);
		}
		else {
			setValue(value);
		}
	}
}