Skip to content

Files

Latest commit

 

History

History
219 lines (133 loc) · 4.68 KB

use-only-public-apis-b0d5fe2.md

File metadata and controls

219 lines (133 loc) · 4.68 KB

Use Only Public APIs

OpenUI5 APIs are classified into different types. Only APIs of type public should be used by application developers.

All OpenUI5 APIs are assigned one of several possible types. App developers should only use public APIs, as compatibility is guaranteed only for these. APIs of type protected are not relevant for app developers; they are only relevant for library development. For example, they could be functions called by certain controls in control development.

The following table gives an overview over these API types:

API Types

API Type

Description

Compatibility Assured?

Can be used by applications?

Further Details

Example

public

Indicates that the API, such as a class or method, is generally available for application developers.

Yes 1

Yes

ManagedObject.prototype.getId

protected

Indicates that usage of the API is restricted. It is not meant to be used by applications.

Yes 1

No

The API might be used outside the relevant class or subclasses, but only in closely related classes in OpenUI5 library / control development.

Control.prototype.invalidate

private

Indicates that the API is not meant for use outside of OpenUI5 framework development. It won't be visible in the OpenUI5 documentation.

No

No

The API is not meant to be used outside its own class, module, package, or library.

Icon.prototype._getOutputTitle

ui5-restricted

Indicates that the API is only meant for certain stakeholders within OpenUI5 framework development and won't be visible in the OpenUI5 documentation.

No 2,3

No

Any potential new usage should be discussed with the owner first, then the stakeholder information should be updated, and only then should the API be used.

Control.prototype.setBlocked

sap-restricted

Deprecated, replaced by ui5-restricted

No

No

 

 

1) Unless the API is experimental.
2) There's no compatibility promise for ui5-restricted APIs. However, before introducing incompatible changes the owner is expected to announce them to the listed stakeholders, so that all affected parties can cooperate to achieve a smooth migration.

Note:

The OpenUI5 documentation only includes APIs of categories public and protected.

Related Information

Compatibility Rules