Examples of EnvironmentVariableContext


Examples of com.alphacsp.cit.validators.EnvironmentVariableContext

            base = ".";
        }
        directory = base + File.separator + System.currentTimeMillis();

        Environment env = new EnvironmentImpl(new EnvironmentTemplate());
        varCtx = new EnvironmentVariableContext(env, "test", new VariableValue(directory));
    }
View Full Code Here

Examples of com.alphacsp.cit.validators.EnvironmentVariableContext

    public void setDescription(String description) {
        this.description = description;
    }

    public void validate(Environment environment, VariableValue varValue) throws ValidationException {
        EnvironmentVariableContext environmentVariableContext = new EnvironmentVariableContext(environment, getVariableName(), varValue);
        validate(environmentVariableContext);
    }
View Full Code Here

Examples of com.alphacsp.cit.validators.EnvironmentVariableContext

        Map<String, CalculatedVariableDefinition> calculations = this.template.getCalculations();
        for (String key : calculations.keySet()) {
            if (!this.variables.containsKey(key)) {
                // was not provided by the user, so let's calculate it!
                CalculatedVariableDefinition calculatedVariableDefinition = calculations.get(key);
                VariableValue variableValue = calculatedVariableDefinition.calculate(new EnvironmentVariableContext(this, key));
                this.variables.put(calculatedVariableDefinition.getVariableName(), variableValue);
            }
        }
    }
View Full Code Here

Examples of com.alphacsp.cit.validators.EnvironmentVariableContext

    private void validateCalculatedVariables() {
        Map<String, CalculatedVariableDefinition> calculations = this.template.getCalculations();
        for (String key : calculations.keySet()) {
            CalculatedVariableDefinition calculatedVariableDefinition = calculations.get(key);
            VariableValue value = this.variables.get(key);
            calculatedVariableDefinition.validate(new EnvironmentVariableContext(this, key, value));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.