pSerializedInputData.put(inputId, dataList); else if (inputParameter.getData().getLiteralData() != null)
pDeSerializedInputData.put(inputId, dataList); else if (inputParameter.getData().getLiteralData() != null)
/** * @param pInput * @param pProcessDescription * @param pExecuteDocument * @param pInputParameter * @return * @throws ExceptionReport */ private IData createDeserializedLiteralData(ProcessDescriptionType pProcessDescription, ExecuteDocument pExecuteDocument, InputType pInputParameter, Map<String, List<String>> pSerializedInputData) throws ExceptionReport { String inputId = pInputParameter.getIdentifier().getStringValue(); String xmlDataType = pInputParameter.getData().getLiteralData().getDataType(); if (xmlDataType == null) { InputDescriptionType inputDescription = null; for (InputDescriptionType tempInputDescription : pProcessDescription.getDataInputs().getInputArray()) { if (inputId.equals(tempInputDescription.getIdentifier().getStringValue())) { inputDescription = tempInputDescription; break; } } xmlDataType = inputDescription.getLiteralData().getDataType().getReference(); } String data = pSerializedInputData.get(inputId).get(0); return BasicXMLTypeFactory.getBasicJavaObject(xmlDataType, data); }
String parameter = input.getData().getLiteralData().getStringValue(); String xmlDataType = input.getData().getLiteralData().getDataType(); String uom = input.getData().getLiteralData().getUom(); boolean foundAllowedValue = false; for(ValueType allowedValue : allowedValues){ if(input.getData().getLiteralData().getStringValue().equals(allowedValue.getStringValue())){ foundAllowedValue = true;
/** * @param pInput * @param pProcessDescription * @param pExecuteDocument * @param pInputParameter * @return * @throws ExceptionReport */ private String createSerializedLiteralData(WebProcessingServiceInput pInput, ProcessDescriptionType pProcessDescription, ExecuteDocument pExecuteDocument, InputType pInputParameter) throws ExceptionReport { String inputId = pInputParameter.getIdentifier().getStringValue(); String xmlDataType = pInputParameter.getData().getLiteralData().getDataType(); if (xmlDataType == null) { InputDescriptionType inputDescription = null; for (InputDescriptionType tempInputDescription : pProcessDescription.getDataInputs().getInputArray()) { if (inputId.equals(tempInputDescription.getIdentifier().getStringValue())) { inputDescription = tempInputDescription; break; } } xmlDataType = inputDescription.getLiteralData().getDataType().getReference(); } IData data = pInput.getInputData().get(inputId).get(0); return BasicXMLTypeFactory.getStringRepresentation(xmlDataType, data); }
/** * Add literal data to the request * @param parameterID the ID of the input paramter according to the describe process * @param value the value. other types than strings have to be converted to string. The datatype is automatically determined and set accordingly to the process description */ public void addLiteralData(String parameterID, String value) { InputDescriptionType inputDesc = this.getParameterDescription(parameterID); if (inputDesc == null) { throw new IllegalArgumentException("inputDescription is null for: " + parameterID); } if (inputDesc.getLiteralData() == null) { throw new IllegalArgumentException("inputDescription is not of type literalData: " + parameterID); } InputType input = execute.getExecute().getDataInputs().addNewInput(); input.addNewIdentifier().setStringValue(parameterID); input.addNewData().addNewLiteralData().setStringValue(value); DomainMetadataType dataType = inputDesc.getLiteralData().getDataType(); if (dataType != null) { input.getData().getLiteralData().setDataType(dataType.getReference()); } }
handleComplexData(input, inputId); else if(input.getData().getLiteralData() != null) { handleLiteralData(input);
&& input.getData().getLiteralData() != null) { if (input.getData().getLiteralData().getDataType() != null) { if (inputDesc.getLiteralData() != null) if (inputDesc.getLiteralData().getDataType() != null) if (!input .getData() .getLiteralData() .getDataType() .equals( inputDesc .getLiteralData() .getDataType() .getReference())) { + input .getData() .getLiteralData() .getDataType() + " for input "
LiteralDataType literalData = input.getData().getLiteralData(); request = request + "=" + literalData.getStringValue(); if(literalData.isSetDataType()){