当前位置: 首页>>代码示例>>Java>>正文


Java StringUtils.trimAllWhitespace方法代码示例

本文整理汇总了Java中org.springframework.util.StringUtils.trimAllWhitespace方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtils.trimAllWhitespace方法的具体用法?Java StringUtils.trimAllWhitespace怎么用?Java StringUtils.trimAllWhitespace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.util.StringUtils的用法示例。


在下文中一共展示了StringUtils.trimAllWhitespace方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setTargetBeanName

import org.springframework.util.StringUtils; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:PropertyPathFactoryBean.java

示例2: setPropertyPath

import org.springframework.util.StringUtils; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:9,代码来源:PropertyPathFactoryBean.java

示例3: setBeanName

import org.springframework.util.StringUtils; //导入方法依赖的package包/类
/**
 * 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));
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:PropertyPathFactoryBean.java

示例4: setTargetField

import org.springframework.util.StringUtils; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:FieldRetrievingFactoryBean.java

示例5: setStaticField

import org.springframework.util.StringUtils; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:FieldRetrievingFactoryBean.java

示例6: setBeanName

import org.springframework.util.StringUtils; //导入方法依赖的package包/类
/**
 * 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));
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:FieldRetrievingFactoryBean.java


注:本文中的org.springframework.util.StringUtils.trimAllWhitespace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。