String mimeType = output.getComplexOutput().getDefault().getFormat().getMimeType(); if(mimeType.contains("xml") || (mimeType.contains("XML"))){ return GTVectorDataBinding.class;
schema = pOutputDescription.getComplexOutput().getDefault().getFormat().getSchema(); mimeType = pOutputDescription.getComplexOutput().getDefault().getFormat().getMimeType(); encoding = pOutputDescription.getComplexOutput().getDefault().getFormat().getEncoding();
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; }
schema = pOutputDescription.getComplexOutput().getDefault().getFormat().getSchema(); mimeType = pOutputDescription.getComplexOutput().getDefault().getFormat().getMimeType(); encoding = pOutputDescription.getComplexOutput().getDefault().getFormat().getEncoding();
String defaultMimeType = outputType.getComplexOutput().getDefault().getFormat().getMimeType(); ComplexDataDescriptionType potenitalFormat = outputType.getComplexOutput().getDefault().getFormat(); if(schema != null && encoding == null){ if(schema.equalsIgnoreCase(potenitalFormat.getSchema())){ finalSchema = outputType.getComplexOutput().getDefault().getFormat().getSchema(); finalMimeType = outputType.getComplexOutput().getDefault().getFormat().getMimeType(); finalEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding(); String defaultEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding(); int found = 0; String foundEncoding = null; if(defaultEncoding.equalsIgnoreCase(encoding)){ foundEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding(); encodingFormat = outputType.getComplexOutput().getDefault().getFormat(); found = found +1; }else{ String defaultSchema = outputType.getComplexOutput().getDefault().getFormat().getSchema(); int found = 0; String foundSchema = null; if(defaultSchema.equalsIgnoreCase(schema)){ foundSchema = outputType.getComplexOutput().getDefault().getFormat().getSchema(); schemaFormat = outputType.getComplexOutput().getDefault().getFormat(); found = found +1; }else{ String defaultEncoding = outputType.getComplexOutput().getDefault().getFormat().getEncoding();
if (complex.getDefault() == null) { ComplexDataCombinationType defaultInputFormat = complex .addNewDefault();
String mimeType = wpsOut.getComplexOutput().getDefault().getFormat().getMimeType(); processor.addData(outputID, new MediaData(null, mimeType)); break;
mimeType = outputDesc.getComplexOutput().getDefault().getFormat().getMimeType(); encoding = outputDesc.getComplexOutput().getDefault().getFormat().getEncoding(); schema = outputDesc.getComplexOutput().getDefault().getFormat().getSchema();
mimeType = currentDesc.getComplexOutput().getDefault().getFormat().getMimeType(); schema = currentDesc.getComplexOutput().getDefault().getFormat().getSchema();
String defaultEncoding = outputDesc.getComplexOutput().getDefault() .getFormat().getEncoding(); if (defaultEncoding == null) {
if (outputDes.isSetComplexOutput()) { mimeType = outputDes.getComplexOutput() .getDefault().getFormat().getMimeType(); LOGGER.warn("Using default mime type: " + mimeType mimeType = "text/xml"; } else if (outputDes.isSetComplexOutput()) { mimeType = outputDes.getComplexOutput().getDefault() .getFormat().getMimeType(); LOGGER.warn("Using default mime type: " + mimeType
String defaultMimeType = outputDesc.getComplexOutput().getDefault() .getFormat().getMimeType(); if (defaultMimeType == null) {
outputDef.setIdentifier(outputDesc.getIdentifier()); String defaultSchema = outputDesc.getComplexOutput().getDefault() .getFormat().getSchema(); if ((defaultSchema != null && defaultSchema.equals(schema))
String schema = d[i].getComplexOutput().getDefault().getFormat().getSchema(); String encoding = d[i].getComplexOutput().getDefault().getFormat().getEncoding(); String mimeType = d[i].getComplexOutput().getDefault().getFormat().getMimeType(); generateComplexDataOutput(d[i].getIdentifier().getStringValue(), false, false, schema, mimeType, encoding, d[i].getTitle());