Class ParameterSet
- java.lang.Object
-
- org.apache.olingo.odata2.core.uri.expression.ParameterSet
-
public class ParameterSet extends Object
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:
InfoMethod,InfoBinaryOperator,InfoUnaryOperator
-
-
Field Summary
Fields Modifier and Type Field Description ArrayList<EdmSimpleType>types
-
Constructor Summary
Constructors Constructor Description ParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2)ParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2, EdmSimpleType type3)ParameterSet(EdmType returnType, EdmSimpleType type1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(List<EdmType> actualParameterTypes, boolean allowPromotion)Compares a list of EdmTypes with the EdmTypes stored intypes.EdmSimpleTypegetFurtherType()EdmTypegetReturnType()ParameterSetsetFurtherType(EdmSimpleType furtherType)
-
-
-
Field Detail
-
types
public ArrayList<EdmSimpleType> types
-
-
Constructor Detail
-
ParameterSet
public ParameterSet(EdmType returnType, EdmSimpleType type1)
-
ParameterSet
public ParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2)
-
ParameterSet
public ParameterSet(EdmSimpleType returnType, EdmSimpleType type1, EdmSimpleType type2, EdmSimpleType type3)
-
-
Method Detail
-
getReturnType
public EdmType getReturnType()
-
getFurtherType
public EdmSimpleType getFurtherType()
-
setFurtherType
public ParameterSet setFurtherType(EdmSimpleType furtherType)
-
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
-
-