flowsetvaluehelper.java

来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 56 行

JAVA
56
字号
package net.java.workeffort.webapp.support;import org.apache.commons.lang.Validate;import org.apache.commons.lang.builder.ToStringBuilder;/** * The helper class which is used to facilitate setting a field value using page * flow. * @author Antony Joseph */public class FlowSetValueHelper {    // used only when setting value for a collection    private String collectionIdx;    private String targetPropertyNameForValue;    private String token;    public FlowSetValueHelper(String targetPropertyNameForValue, String token) {        this(null, targetPropertyNameForValue, token);    }    public FlowSetValueHelper(String collectionIdx,            String targetPropertyNameForValue, String token) {        Validate.notEmpty(targetPropertyNameForValue,                "targetPropertyNameForValue cannot be null");        Validate.notEmpty(token, "token cannot be null");        this.collectionIdx = collectionIdx;        this.targetPropertyNameForValue = targetPropertyNameForValue;        this.token = token;    }    /**     * @return Returns the collectionIdx.     */    public String getCollectionIdx() {        return collectionIdx;    }    /**     * @return Returns the token.     */    public String getToken() {        return token;    }    /**     * @return Returns the targetPropertyNameForValue.     */    public String getTargetPropertyNameForValue() {        return targetPropertyNameForValue;    }    /** @return string representation */    public String toString() {        return ToStringBuilder.reflectionToString(this);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?