LiteralOutputType literalOutput = odt.getLiteralOutput();
SupportedComplexDataType complexOutput = odt.getComplexOutput();
Class type = Object.class;
if (literalOutput != null)
{
DomainMetadataType dataType = literalOutput.getDataType();
if(dataType != null)
{
// try and parse the type
Class literalType = null;
if(dataType.getReference() != null) { // reference is 0..1
literalType = guessLiteralType(dataType.getReference());
if(literalType == null) {
LOGGER.warning("Unparsable ows:reference " + dataType.getReference());
}
}
if(literalType == null) { // no parsable reference
literalType = guessLiteralType(dataType.getValue()); // value is mandatory
}
type = literalType != null? literalType : String.class;
}
else