To create a custom model implementation, proceed as follows:
Procedure
Extend the
Model class and
specify the binding modes that the model should support (for example, two-way,
one-way, one-time).
Extend the
Binding class to
suit your specific binding or reuse the existing specific binding
implementations
PropertyBinding,
ListBinding, and/or
TreeBinding.
To enable the filtering
functionality, use the
Filter class with
FilterOperator enum
in your binding implementation.
To enable the sorting functionality,
use the
Sorter class in your
binding implementation.
Results
You can find all necessary classes in the
sap.ui.model
namespace.
As a starting point, take a look at the
JSONModel
implementation in
sap.ui.model.json.JSONModel.