private static String toUriString(OFunctionParameter p) { OObject obj = p.getValue(); if (obj instanceof OSimpleObject) { OSimpleObject<?> simple = (OSimpleObject<?>) obj; LiteralExpression le = Expression.literal(simple.getType(), simple.getValue()); return Expression.asFilterString(le); } throw new UnsupportedOperationException("type not supported: " + obj.getType().getFullyQualifiedTypeName()); }
private static String toUriString(OFunctionParameter p) { OObject obj = p.getValue(); if (obj instanceof OSimpleObject) { OSimpleObject<?> simple = (OSimpleObject<?>) obj; LiteralExpression le = Expression.literal(simple.getType(), simple.getValue()); return Expression.asFilterString(le); } throw new UnsupportedOperationException("type not supported: " + obj.getType().getFullyQualifiedTypeName()); }