dataObjectType.setType(DataType.valueOf(inputResource.getInputType()));
}
dataObjectType.setMetaData(inputResource.getMetadata());
return dataObjectType;
}else if (object instanceof ApplicationOutputResource){
ApplicationOutputResource outputResource = (ApplicationOutputResource)object;
dataObjectType.setKey(outputResource.getOutputKey());
dataObjectType.setValue(outputResource.getValue());
if (outputResource.getOutputType() != null){
dataObjectType.setType(DataType.valueOf(outputResource.getOutputType()));
}
dataObjectType.setMetaData(outputResource.getMetadata());
return dataObjectType;
}else {
return null;
}
}