OutputDescriptionType outputDesc = XMLBeansHelper .findOutputByID(outputDataInput, description.getProcessOutputs() .getOutputArray()); if (outputDesc == null) { throw new ExceptionReport( OutputDescriptionType outputDesc = XMLBeansHelper.findOutputByID( rawDataInput, description.getProcessOutputs().getOutputArray()); if (outputDesc == null) { throw new ExceptionReport(
OutputDescriptionType[] describeProcessOutput = description.getProcessOutputs().getOutputArray(); for(OutputDescriptionType tempOutputType : describeProcessOutput){ if(tempOutputType.getIdentifier().getStringValue().equalsIgnoreCase(id)){
OutputDescriptionType[] wpsOutputs = this.getDescription().getProcessOutputs().getOutputArray();
OutputDescriptionType[] outputArray = pd.getProcessOutputs().getOutputArray();
OutputDescriptionType[] outputDescs = description.getProcessOutputs().getOutputArray(); if(request.isRawData()) { OutputDefinitionType rawDataOutput = request.getExecute().getResponseForm().getRawDataOutput(); OutputDescriptionType [] d = description.getProcessOutputs().getOutputArray(); for (int i = 0; i < d.length; i++)
for(OutputDescriptionType tempDesc : processDesc.getProcessOutputs().getOutputArray()) { if(outputID.equals(tempDesc.getIdentifier().getStringValue())) { outputDesc = tempDesc;
public static Class getOutputDataType(AlgorithmPackage mco, String id) { OutputDescriptionType[] outputs = mco.getProcessDescription().getProcessOutputs().getOutputArray();
public Class<?> getOutputDataType(String id) { OutputDescriptionType[] outputs = this.getDescription().getProcessOutputs().getOutputArray();
public Class<?> getOutputDataType(String id) { OutputDescriptionType[] outputs = processDescription.getProcessOutputs().getOutputArray();
Map<String, String> pSerializedData) throws ExceptionReport for (OutputDescriptionType outputDescription : processDescription.getProcessOutputs().getOutputArray())
@Override public Class< ? > getOutputDataType(String id) { OutputDescriptionType[] outputs = this.getDescription().getProcessOutputs().getOutputArray();
/** * this sets store for the specific output. * @param parentInput * @return */ public boolean setAsReference(String outputName, boolean asReference) { DocumentOutputDefinitionType outputDef = null; if (!execute.getExecute().isSetResponseForm()) { execute.getExecute().addNewResponseForm(); } if (!execute.getExecute().getResponseForm().isSetResponseDocument()) { execute.getExecute().getResponseForm().addNewResponseDocument(); } for(DocumentOutputDefinitionType outputDefTemp: execute.getExecute().getResponseForm().getResponseDocument().getOutputArray()) { if(outputDefTemp.getIdentifier().getStringValue().equals(outputName)) { outputDef = outputDefTemp; break; } } if (outputDef == null) { outputDef = execute.getExecute().getResponseForm() .getResponseDocument().addNewOutput(); } for (OutputDescriptionType outputDesc : processDesc.getProcessOutputs().getOutputArray()) { if (outputDesc.getIdentifier().getStringValue().equals(outputName)) { outputDef.setAsReference(asReference); } } return true; }
private void addOutput(ProcessOutputs outputs, Output out) { OutputDescriptionType output = outputs.addNewOutput(); output.addNewAbstract().setStringValue(out.getDescription()); output.addNewIdentifier().setStringValue(out.getName());
private void createDeserialized(ProcessDescriptionType pProcessDescription, ExecuteDocument pExecuteDocument, Map pSerializedData, Map pDeserializedData) throws ExceptionReport { for (OutputDescriptionType outputDescription : processDescription.getProcessOutputs().getOutputArray()) { String ouputId = outputDescription.getIdentifier().getStringValue(); if (outputDescription.getComplexOutput() != null) { Object data = createDeserializedComplexData(pProcessDescription, pExecuteDocument, outputDescription, pSerializedData); pDeserializedData.put(ouputId, data); } else if (outputDescription.getLiteralOutput() != null) { LOGGER.error("Deserialization of literal output data is not supported."); throw new ExceptionReport("Serialization of literal output data is not supported.", ExceptionReport.OPERATION_NOT_SUPPORTED); } else if (outputDescription.getBoundingBoxOutput() != null) { LOGGER.error("Deserialization of BBOX output data is not supported."); throw new ExceptionReport("Serialization of BBOX output data is not supported.", ExceptionReport.OPERATION_NOT_SUPPORTED); } } }
public String getDefaultMimeType(String paramID){ String mimeType = null; // check inputs for a match for (InputDescriptionType currentInput : processDescription.getDataInputs().getInputArray()){ if (currentInput.getIdentifier().getStringValue().equalsIgnoreCase(paramID)){ mimeType = currentInput.getComplexData().getDefault().getFormat().getMimeType(); } } for (OutputDescriptionType currentOutput : processDescription.getProcessOutputs().getOutputArray()){ if (currentOutput.getIdentifier().getStringValue().equalsIgnoreCase(paramID)){ mimeType = currentOutput.getComplexOutput().getDefault().getFormat().getMimeType(); } } return mimeType; }
private OutputDescriptionType getOutputDescription(String outputName) { for (OutputDescriptionType outputDesc : processDesc.getProcessOutputs() .getOutputArray()) { if (outputDesc.getIdentifier().getStringValue().equals(outputName)) { return outputDesc; } } return null; }