use of net.opengis.wps10.OutputDescriptionType in project sldeditor by robward-scisys.
the class GeoServerWPSClient method getOutputParameter.
/**
* Gets the input parameter.
*
* @param typeOfData the type of data
* @param dataInputs the data inputs
* @return the input parameter
*/
/*
private boolean getInputParameter(DataTypeEnum typeOfData, DataInputsType dataInputs) {
ConsoleManager.getInstance().information(this,
"Inputs");
for (Object dataInput : dataInputs.getInput()) {
InputDescriptionType input = (InputDescriptionType) dataInput;
if (input instanceof InputDescriptionType) {
InputDescriptionType inputDescription = (InputDescriptionType) input;
LiteralInputType literal = inputDescription.getLiteralData();
if (literal != null) {
DomainMetadataType dataType = literal.getDataType();
ConsoleManager.getInstance().information(this,
dataType.getValue());
} else {
SupportedCRSsType bbox = inputDescription.getBoundingBoxData();
if (bbox != null) {
ConsoleManager.getInstance().information(this,
"BBox");
} else {
SupportedComplexDataType complex = inputDescription.getComplexData();
if (complex != null) {
ComplexDataCombinationsType parameterDataType = complex.getSupported();
if (isGeometry(typeOfData, parameterDataType)) {
return true;
}
}
}
}
}
}
return false;
}
*/
/**
* Gets the output parameter.
*
* @param typeOfData the type of data
* @param processOutputs the process outputs
* @return the output parameter
*/
private boolean getOutputParameter(DataTypeEnum typeOfData, ProcessOutputsType processOutputs) {
ConsoleManager.getInstance().information(this, "Outputs");
for (Object o : processOutputs.getOutput()) {
if (o instanceof OutputDescriptionType) {
OutputDescriptionType oo = (OutputDescriptionType) o;
LiteralOutputType literal = oo.getLiteralOutput();
if (literal != null) {
DomainMetadataType dataType = literal.getDataType();
if (dataType != null) {
ConsoleManager.getInstance().information(this, dataType.getValue());
}
} else {
SupportedCRSsType bbox = oo.getBoundingBoxOutput();
if (bbox != null) {
ConsoleManager.getInstance().information(this, "BBox");
} else {
SupportedComplexDataType complex = oo.getComplexOutput();
if (complex != null) {
ComplexDataCombinationsType parameterDataType = complex.getSupported();
if (isGeometry(typeOfData, parameterDataType)) {
return true;
}
}
}
}
}
}
return false;
}
Aggregations