Class ParameterSet
java.lang.Object
org.apache.olingo.odata2.core.uri.expression.ParameterSet
Parameter set is a vector of 1 or more EDM types, it is used to store the possible
input and return types of a OData filter operator or OData filter method
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2) ParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2, EdmSimpleType type3) ParameterSet(EdmType returnType, EdmSimpleType type1) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares a list of EdmTypes with the EdmTypes stored intypes.setFurtherType(EdmSimpleType furtherType)
-
Field Details
-
types
-
-
Constructor Details
-
ParameterSet
-
ParameterSet
-
ParameterSet
public ParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2, EdmSimpleType type3)
-
-
Method Details
-
getReturnType
-
getFurtherType
-
setFurtherType
-
equals
public boolean equals(List<EdmType> actualParameterTypes, boolean allowPromotion) throws ExpressionParserInternalError Compares a list of EdmTypes with the EdmTypes stored intypes. The lists are compared sequentially, e.g index N of actualParameterTypes with index N oftypes. If the input list contains more elements than stored intypes(which is allowed when validating the concat method which takes a variable number of input parameters), the actual parameter type is compared against thefurtherType.- Parameters:
actualParameterTypes- TiposallowPromotion- AllowPromotion- Returns:
- true if equals
- Throws:
ExpressionParserInternalError- Caso ocaorra erro
-