private ProcessModel parseProcessModel(final ProcessModelType xbProcessModel) throws OwsExceptionReport { final ProcessModel processModel = new ProcessModel(); parseAbstractProcess(xbProcessModel, processModel); parseAbstractPureProcess(xbProcessModel, processModel); if (xbProcessModel.getMethod() != null) { processModel.setMethod(parseProcessMethod(xbProcessModel.getMethod())); } processModel.setSensorDescriptionXmlString(addSensorMLWrapperForXmlDescription(xbProcessModel)); return processModel; }
private void parseAbstractPureProcess( final AbstractPureProcessType xbAbstractPureProcess, final ProcessModel processModel) throws OwsExceptionReport { if (xbAbstractPureProcess.isSetInputs()) { processModel.setInputs(parseInputs(xbAbstractPureProcess.getInputs())); } if (xbAbstractPureProcess.isSetOutputs()) { processModel.setOutputs(parseOutputs(xbAbstractPureProcess.getOutputs())); } if (xbAbstractPureProcess.isSetParameters()) { processModel.setParameters(parseParameters(xbAbstractPureProcess.getParameters())); } }