Interface IModelParentSupport

All Known Implementing Classes:
ModelParentSupport

public interface IModelParentSupport
Model parent support allows clients to get model parent (in terms of 1C:Enteprise Runtime model) of the target model objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getModelParent(Class<T> parentClass, org.eclipse.emf.ecore.EObject model)
    Returns logical model parent.
    <T> T
    getModelParent(Class<T> parentClass, org.eclipse.emf.ecore.EObject model, boolean lookUp)
    Returns logical model parent.
    org.eclipse.emf.ecore.EObject
    getModelParent(org.eclipse.emf.ecore.EObject model)
    Returns logical model parent.
  • Method Details

    • getModelParent

      <T> T getModelParent(Class<T> parentClass, org.eclipse.emf.ecore.EObject model)
      Returns logical model parent.
      Parameters:
      parentClass - expected parent class.
      model - model to get parent of.
      Returns:
      parent of expected class or null if there is no parent or if the parent is of wrong class.
    • getModelParent

      <T> T getModelParent(Class<T> parentClass, org.eclipse.emf.ecore.EObject model, boolean lookUp)
      Returns logical model parent. Seeks the parent through the whole hierarchy.
      Parameters:
      parentClass - expected parent class.
      model - model to get parent of.
      lookUp - True to search among parents of the given model; false otherwise.
      Returns:
      parent of expected class or null if there is no parent or if the parent is of wrong class.
    • getModelParent

      org.eclipse.emf.ecore.EObject getModelParent(org.eclipse.emf.ecore.EObject model)
      Returns logical model parent.
      Parameters:
      model - model to get parent of.
      Returns:
      model parent of null if there is no parent.