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

The following are Jave code examples for showing how to use trimAllWhitespace() 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.
Example 1
Project: lams   File: PropertyPathFactoryBean.java   Source Code and License Vote up 2 votes
/**
 * Specify the name of a target bean to apply the property path to.
 * Alternatively, specify a target object directly.
 * @param targetBeanName the bean name to be looked up in the
 * containing bean factory (e.g. "testBean")
 * @see #setTargetObject
 */
public void setTargetBeanName(String targetBeanName) {
	this.targetBeanName = StringUtils.trimAllWhitespace(targetBeanName);
}
 
Example 2
Project: lams   File: PropertyPathFactoryBean.java   Source Code and License Vote up 2 votes
/**
 * Specify the property path to apply to the target.
 * @param propertyPath the property path, potentially nested
 * (e.g. "age" or "spouse.age")
 */
public void setPropertyPath(String propertyPath) {
	this.propertyPath = StringUtils.trimAllWhitespace(propertyPath);
}
 
Example 3
Project: lams   File: PropertyPathFactoryBean.java   Source Code and License Vote up 2 votes
/**
 * The bean name of this PropertyPathFactoryBean will be interpreted
 * as "beanName.property" pattern, if neither "targetObject" nor
 * "targetBeanName" nor "propertyPath" have been specified.
 * This allows for concise bean definitions with just an id/name.
 */
@Override
public void setBeanName(String beanName) {
	this.beanName = StringUtils.trimAllWhitespace(BeanFactoryUtils.originalBeanName(beanName));
}
 
Example 4
Project: lams   File: FieldRetrievingFactoryBean.java   Source Code and License Vote up 2 votes
/**
 * Set the name of the field to be retrieved.
 * Refers to either a static field or a non-static field,
 * depending on a target object being set.
 * @see #setTargetClass
 * @see #setTargetObject
 */
public void setTargetField(String targetField) {
	this.targetField = StringUtils.trimAllWhitespace(targetField);
}
 
Example 5
Project: lams   File: FieldRetrievingFactoryBean.java   Source Code and License Vote up 2 votes
/**
 * Set a fully qualified static field name to retrieve,
 * e.g. "example.MyExampleClass.MY_EXAMPLE_FIELD".
 * Convenient alternative to specifying targetClass and targetField.
 * @see #setTargetClass
 * @see #setTargetField
 */
public void setStaticField(String staticField) {
	this.staticField = StringUtils.trimAllWhitespace(staticField);
}
 
Example 6
Project: lams   File: FieldRetrievingFactoryBean.java   Source Code and License Vote up 2 votes
/**
 * The bean name of this FieldRetrievingFactoryBean will be interpreted
 * as "staticField" pattern, if neither "targetClass" nor "targetObject"
 * nor "targetField" have been specified.
 * This allows for concise bean definitions with just an id/name.
 */
@Override
public void setBeanName(String beanName) {
	this.beanName = StringUtils.trimAllWhitespace(BeanFactoryUtils.originalBeanName(beanName));
}