butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

Offer transformation request properties during Definition time

Open fabiocarvalho777 opened this issue 5 years ago • 0 comments

Transformation request properties should be made available to the application, not just during Transformation time (already covered in #167), but in Definition time as well.

Properties should be accessible via the following methods in the TransformationTemplate class:


    /**
     * Return the property value associated with the given property name.
     * Properties are optional and transformation request specific.
     * Null is returned if this property doesn't exist.
     *
     * @param propertyName the property name
     * @return the property value or null, if property doesn't exist
     */
    protected String getProperty(String propertyName) {
        // TODO
        return null;
    }

    /**
     * Return the property value associated with the given property name.
     * Properties are optional and transformation request specific.
     * The specified default value is returned if this property doesn't exist.
     *
     * @param propertyName the property name
     * @return the property value or the default value, if property doesn't exist
     */
    protected String getProperty(String propertyName, String defaultValue) {
        // TODO
        return null;
    }

fabiocarvalho777 avatar Mar 28 '19 21:03 fabiocarvalho777