org.eclipse.handly.model

## Class Models

- java.lang.Object
- - org.eclipse.handly.model.Models

-     public class Models
      extends java.lang.Object

  Provides static methods for generic access to `IModel`s.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `getModelApiLevel(IModel model)` Returns the Handly API level supported by the model; one of the level constants declared in `ApiLevel`.
    `static IContext` | `getModelContext(IModel model)` Returns a context which provides information and services pertaining to the model.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getModelContext

          public static IContext getModelContext(IModel model)

      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` - not `null`
      Returns:
        the model context (never `null`)

    - #### getModelApiLevel

          public static int getModelApiLevel(IModel model)

      Returns the Handly API level supported by the model; one of the level constants declared in `ApiLevel`.
      Parameters:
        `model` - not `null`
      Returns:
        the Handly API level supported by the model

Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0