Class sap.ui.model.odata.FilterModule: sap/ui/model/odata/Filter
Filter for the list binding
Deprecated API:Since 1.22. Please use the sap.ui.model.Filter instead.
Constructor Summary
Method Summary
sap.ui.model.odata.Filter.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.odata.Filter with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.ui.model.odata.Filter.getMetadata()Returns a metadata object for class sap.ui.model.odata.Filter.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.model.odata.Filter(sPath, aValues, bAND?)
Constructor for Filter
Parameters:
{string} | sPath | the binding path for this filter |
{object[]} | aValues | Array of FilterOperators and their values: [{operator:"GE",value1:"val1"},{operator:"LE",value1:"val1"},{operator:"BT",value1:"val1",value2:"val2"}] |
{boolean} | bAND?, Default: true | If true the values from aValues will be ANDed; otherwise ORed |
- Deprecated:
- Since 1.22. Please use the sap.ui.model.Filter instead.
Method Detail
sap.ui.model.odata.Filter.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.model.odata.Filter with name
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.base.Object.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
sap.ui.model.odata.Filter.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.odata.Filter.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |
convert(): sap.ui.model.Filter
Converts the
sap.ui.model.odata.Filter
into a sap.ui.model.Filter
. Returns:
{sap.ui.model.Filter} | a sap.ui.model.Filter object |