protected ComplexDataDescriptionType findComplexDataDescriptionType(InputDescriptionType inputReferenceDesc, String dataMimeType, String dataSchema, String dataEncoding, String potentialFormatSchema, String potentialFormatEncoding) { ComplexDataDescriptionType result = null; boolean canUseDefault = false; String defaultMimeType = inputReferenceDesc.getComplexData().getDefault().getFormat().getMimeType(); ComplexDataDescriptionType potentialFormat = inputReferenceDesc.getComplexData().getDefault().getFormat(); if(dataSchema != null && dataEncoding == null){ if(dataSchema.equalsIgnoreCase(potentialFormatSchema)){
String mimeType = input.getComplexData().getDefault().getFormat().getMimeType(); if(mimeType.contains("xml") || (mimeType.contains("XML"))){ return GTVectorDataBinding.class;
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; }
if (complex.getDefault() == null) { ComplexDataCombinationType defaultInputFormat = complex .addNewDefault();
schema = inputDescription.getComplexData().getDefault().getFormat().getSchema(); mimeType = inputDescription.getComplexData().getDefault().getFormat().getMimeType(); encoding = inputDescription.getComplexData().getDefault().getFormat().getEncoding();
formatSchema = inputReferenceDesc.getComplexData().getDefault().getFormat().getSchema(); dataMimeType = inputReferenceDesc.getComplexData().getDefault().getFormat().getMimeType(); formatEncoding = inputReferenceDesc.getComplexData().getDefault().getFormat().getEncoding(); }else{ String defaultEncoding = inputReferenceDesc.getComplexData().getDefault().getFormat().getEncoding(); ComplexDataDescriptionType encodingFormat = null; String foundEncoding = null; if(defaultEncoding.equalsIgnoreCase(data.getEncoding())){ foundEncoding = inputReferenceDesc.getComplexData().getDefault().getFormat().getEncoding(); encodingFormat = inputReferenceDesc.getComplexData().getDefault().getFormat(); foundCount++; }else{ String defaultSchema = inputReferenceDesc.getComplexData().getDefault().getFormat().getSchema(); int found = 0; String foundSchema = null; foundSchema = inputReferenceDesc.getComplexData().getDefault().getFormat().getSchema(); schemaFormat = inputReferenceDesc.getComplexData().getDefault().getFormat(); found++; }else{ String defaultEncoding = inputReferenceDesc.getComplexData().getDefault().getFormat().getEncoding(); foundEncodingList.add(inputReferenceDesc.getComplexData().getDefault().getFormat()); }else{ ComplexDataDescriptionType[] formats = inputReferenceDesc.getComplexData().getSupported().getFormatArray();
mimeType = currentDesc.getComplexData().getDefault().getFormat().getMimeType(); schema = currentDesc.getComplexData().getDefault().getFormat().getSchema();
String defaultMimeType = inputPD.getComplexData().getDefault().getFormat().getMimeType(); ComplexDataDescriptionType potentialFormat = inputPD.getComplexData().getDefault().getFormat(); if(referenceData.getSchema() != null && referenceData.getEncoding() == null){ if(referenceData.getSchema().equalsIgnoreCase(potentialFormat.getSchema())){ String defaultMimeType = inputPD.getComplexData().getDefault().getFormat().getMimeType(); ComplexDataDescriptionType potentialFormat = inputPD.getComplexData().getDefault().getFormat(); if(referenceData.getSchema() != null && referenceData.getEncoding() == null){ if(referenceData.getSchema().equalsIgnoreCase(potentialFormat.getSchema())){ schema = inputPD.getComplexData().getDefault().getFormat().getSchema(); mimeType = inputPD.getComplexData().getDefault().getFormat().getMimeType(); encoding = inputPD.getComplexData().getDefault().getFormat().getEncoding(); String defaultEncoding = inputPD.getComplexData().getDefault().getFormat().getEncoding(); int found = 0; String foundEncoding = null; if(defaultEncoding.equalsIgnoreCase(referenceData.getEncoding())){ foundEncoding = inputPD.getComplexData().getDefault().getFormat().getEncoding(); encodingFormat = inputPD.getComplexData().getDefault().getFormat(); found += 1; }else{ String defaultSchema = inputPD.getComplexData().getDefault().getFormat().getSchema(); int found = 0; String foundSchema = null; if(defaultSchema.equalsIgnoreCase(referenceData.getSchema())){