UI-Component Sets
Flow Documentation

CPD Results

The following document contains the results of PMD's CPD 4.2.5.

Duplications

FileLine
org/apache/myfaces/orchestra/flow/config/FlowParamSend.java44
org/apache/myfaces/orchestra/flow/config/FlowReturnSend.java44
    public FlowReturnSend()
    {
    }

    /**
     * Check that all the properties of this object have valid values, ie
     * whether the configuration specified by the user is valid.
     */
    public void validate()
    {
        if (name == null)
        {
            throw new OrchestraException("name is null");
        }

        if (src == null)
        {
            throw new OrchestraException("src is null");
        }
    }

    /**
     * Define the name of this parameter.
     * <p>
     * The caller is expected to define a return parameter with a matching name.
     * <p> 
     * Null is never returned.
     */
    public String getName()
    {
        return name;
    }

    /** For use only during object initialization. */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * An EL expression which defines where the actual value begin returned to the
     * caller should be fetched from when the call occurs.
     * <p>
     * Null is never returned.
     */
    public String getSrc()
    {
        return src;
    }

    /** For use only during object initialization. */
    public void setSrc(String expr)
    {
        this.src = expr;

        FacesContext fc = FacesContext.getCurrentInstance();
        srcExpr = _ExpressionFactory.createValueExpression(fc, src);
    }

    /**
     * Evaluate the src EL expression and return the resulting object (or null).
     */
    public Object getSrcValue(FacesContext facesContext)
    {
        return srcExpr.getValue(facesContext.getELContext());
    }
}