Commit a85cfcdf authored by Pietro Braghieri's avatar Pietro Braghieri
Browse files

Update OSLC_README.md

parent 74744d95
......@@ -58,22 +58,23 @@ For example, we need to add the parameter `wholeArchitecture` of type `boolean`
We have to work on both the client side and the server side following these steps:
##### Client Side
Suppose that the `wholeArchitecture` attribute is already present in the class `eu.fbk.tools.adapter.ocra.CheckContractRefinement.java`.
Suppose that the `wholeArchitecture` attribute is already present in the class `eu.fbk.tools.adapter.ocra.CheckValidationProperty.java`.
* Add `String PARAM_WHOLE_ARCHITECTURE = "wholeArchitecture"` to the class `eu.fbk.tools.adapter.ToolParameterConstants.java`
* Insert the following fragment in the `getParameters()` method
* Insert the following fragment in the `getParameters()` method of the class `CheckValidationProperty`
```
if( wholeArchitecture != null)
{
parameters.add(new ToolFunctionParameter(ToolParameterConstants.PARAM_WHOLE_ARCHITECTURE, wholeArchitecture.toString()));
}
```
* Insert the following fragment in the `setParameters(ToolFunctionParameter parameter)` method
* Insert the following fragment in the `setParameters(ToolFunctionParameter parameter)` method of the class `CheckValidationProperty`
```
case ToolParameterConstants.PARAM_WHOLE_ARCHITECTURE:
wholeArchitecture = Boolean.valueOf(parameter.value);
break;
```
##### Server Side
#### Add a new Automation Plan
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment