Commit 266599ee authored by Pietro Braghieri's avatar Pietro Braghieri
Browse files

Update OSLC_README.md

parent a85cfcdf
......@@ -74,6 +74,30 @@ case ToolParameterConstants.PARAM_WHOLE_ARCHITECTURE:
break;
```
In the case of parameter that represents a file (i.e. full file path name), we have to convert it into a URI.
The fragment to insert in the `getParameters()` method will be:
```
URI behaviourModel;
...
if( behaviourModel != null)
{
parameters.add(new ToolFunctionParameter(ToolParameterConstants.PARAM_BEHAVIOUR_MODEL, behaviourModel.toString(), true));
}
```
and the fragment to insert in the `setParameters(ToolFunctionParameter parameter)` method will be:
```
case ToolParameterConstants.PARAM_BEHAVIOUR_MODEL:
try
{
behaviourModel = new URI(parameter.value);
}
catch (URISyntaxException e)
{
logger.error("Invalid " + parameter.name +": " + parameter.value == null ? "null value" : parameter.value);
}
break;
```
##### Server Side
......
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