in lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/annotation/AbstractEdmExpression.java [76:151]
private static EdmDynamicExpression getDynamicExpression(Edm edm, final CsdlDynamicExpression exp) {
EdmDynamicExpression _expression = null;
if (exp.isLogicalOrComparison()) {
CsdlLogicalOrComparisonExpression expLocal = exp.asLogicalOrComparison();
switch (exp.asLogicalOrComparison().getType()) {
case Not:
_expression = new EdmNotImpl(edm, expLocal);
break;
case And:
_expression = new EdmAndImpl(edm, expLocal);
break;
case Or:
_expression = new EdmOrImpl(edm, expLocal);
break;
case Eq:
_expression = new EdmEqImpl(edm, expLocal);
break;
case Ne:
_expression = new EdmNeImpl(edm, expLocal);
break;
case Ge:
_expression = new EdmGeImpl(edm, expLocal);
break;
case Gt:
_expression = new EdmGtImpl(edm, expLocal);
break;
case Le:
_expression = new EdmLeImpl(edm, expLocal);
break;
case Lt:
_expression = new EdmLtImpl(edm, expLocal);
break;
default:
}
} else if (exp.isAnnotationPath()) {
_expression = new EdmAnnotationPathImpl(edm, exp.asAnnotationPath());
} else if (exp.isApply()) {
_expression = new EdmApplyImpl(edm, exp.asApply());
} else if (exp.isCast()) {
_expression = new EdmCastImpl(edm, exp.asCast());
} else if (exp.isCollection()) {
_expression = new EdmCollectionImpl(edm, exp.asCollection());
} else if (exp.isIf()) {
_expression = new EdmIfImpl(edm, exp.asIf());
} else if (exp.isIsOf()) {
_expression = new EdmIsOfImpl(edm, exp.asIsOf());
} else if (exp.isLabeledElement()) {
_expression = new EdmLabeledElementImpl(edm, exp.asLabeledElement());
} else if (exp.isLabeledElementReference()) {
_expression = new EdmLabeledElementReferenceImpl(edm, exp.asLabeledElementReference());
} else if (exp.isNull()) {
_expression = new EdmNullImpl(edm, exp.asNull());
} else if (exp.isNavigationPropertyPath()) {
_expression = new EdmNavigationPropertyPathImpl(edm, exp.asNavigationPropertyPath());
} else if (exp.isPath()) {
_expression = new EdmPathImpl(edm, exp.asPath());
} else if (exp.isPropertyPath()) {
_expression = new EdmPropertyPathImpl(edm, exp.asPropertyPath());
} else if (exp.isRecord()) {
_expression = new EdmRecordImpl(edm, exp.asRecord());
} else if (exp.isUrlRef()) {
_expression = new EdmUrlRefImpl(edm, exp.asUrlRef());
}
return _expression;
}