Interface IModel

    • Method Detail

      • setVersion

        void setVersion​(Version version)
        Changes the version of this model.
        Parameters:
        version - Version to set
      • getVersion

        Version getVersion()
        Returns the version of this model.
        Specified by:
        getVersion in interface IModelData
        Returns:
        the version or null if no version is specified for this model.
      • getName

        java.lang.String getName()
        Returns the name of the model element.
        Specified by:
        getName in interface IModelData
        Returns:
        the name of this model element.
      • getImportsCount

        int getImportsCount()
        Returns the number of imports.
        Returns:
        the number of imports
      • getImport

        ModelImport<?> getImport​(int index)
        Returns the model import specified by index.
        Parameters:
        index - a 0-based index specifying the import to be returned
        Returns:
        the model import
        Throws:
        java.lang.IndexOutOfBoundsException - if index<0 || index>=getImportsCount()
      • getSuper

        ModelImport<?> getSuper()
        Returns the reference to the super model (if it exists).
        Returns:
        the super model (in terms of a model import/reference, may be null)
      • getIndentationConfiguration

        IndentationConfiguration getIndentationConfiguration()
        Returns the indentation configuration for this model. The indentation configuration is considered to be immutable.
        Returns:
        the indentation configuration (disabled if null)
      • dispose

        void dispose()
        Shall be called at the end of the lifetime of the model in order to clean up references such as listeners.
      • getRestrictionEvaluationContext

        IRestrictionEvaluationContext getRestrictionEvaluationContext()
        Returns the context for evaluating import / conflict restrictions. This context shall only contain the information that is necessary to evaluate restriction information.
        Returns:
        the evaluation context