Package org.eclipse.handly.model
Class Models
java.lang.Object
org.eclipse.handly.model.Models
Provides static methods for generic access to
IModel
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getModelApiLevel
(IModel model) Returns the Handly API level supported by the model; one of the level constants declared inApiLevel
.static IContext
getModelContext
(IModel model) Returns a context which provides information and services pertaining to the model.
-
Method Details
-
getModelContext
Returns a context which provides information and services pertaining to the model. The context, as a set of bindings, is immutable. The relationship between a model and its context does not change over the lifetime of the model.- Parameters:
model
- notnull
- Returns:
- the model context (never
null
)
-
getModelApiLevel
Returns the Handly API level supported by the model; one of the level constants declared inApiLevel
.- Parameters:
model
- notnull
- Returns:
- the Handly API level supported by the model
-