Class AbstractEObjectProvider

java.lang.Object
com._1c.g5.v8.dt.platform.AbstractEObjectProvider
All Implemented Interfaces:
IEObjectProvider
Direct Known Subclasses:
EmptyEObjectProvider

public abstract class AbstractEObjectProvider extends Object implements IEObjectProvider
Abstract base class to be extended by IEObjectProvider implementations.
  • Constructor Details

    • AbstractEObjectProvider

      public AbstractEObjectProvider(org.eclipse.emf.ecore.EClass eClass)
      Constructor.
      This constructor presumes that EClass passed in a parameter isn't abstract.
      Parameters:
      eClass - EClass
  • Method Details

    • getEClass

      public org.eclipse.emf.ecore.EClass getEClass()
      Specified by:
      getEClass in interface IEObjectProvider
      Returns:
      EClass
    • getUri

      public org.eclipse.emf.common.util.URI getUri(String name)
      Description copied from interface: IEObjectProvider
      Gets URI by the object name.
      Specified by:
      getUri in interface IEObjectProvider
      Parameters:
      name - object name.
      Returns:
      URI corresponding to name.
    • createProxy

      public org.eclipse.emf.ecore.EObject createProxy(String name)
      Description copied from interface: IEObjectProvider
      Creates proxy by the object name.
      Specified by:
      createProxy in interface IEObjectProvider
      Parameters:
      name - object name.
      Returns:
      created proxy.
    • getProxy

      public org.eclipse.emf.ecore.EObject getProxy(String name)
      Description copied from interface: IEObjectProvider
      Creates proxy by the object name
      Specified by:
      getProxy in interface IEObjectProvider
      Parameters:
      name - object name
      Returns:
      created proxy or null if proxy wasn't created
    • getEObjectDescription

      public org.eclipse.xtext.resource.IEObjectDescription getEObjectDescription(String name)
      Description copied from interface: IEObjectProvider
      Returns EObject description associated with specified name.
      Specified by:
      getEObjectDescription in interface IEObjectProvider
      Parameters:
      name - object name
    • getEObjectDescriptions

      public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getEObjectDescriptions(com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
      Description copied from interface: IEObjectProvider
      Returns EObject descriptions provided by this instance possibly filtered using filter.
      Specified by:
      getEObjectDescriptions in interface IEObjectProvider
      Parameters:
      filter - Predicate used to filter instances of IEObjectDescription. May be null.
      Returns:
      Iterable of IEObjectDescription filtered using filter
    • init

      protected abstract void init()
      Special method with contains logic for initializing provider data. This method is called in ensureInitialized()
    • addData

      protected void addData(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EClass eClass, String name, Map<String,String> userData, String nameRu, Map<String,String> userDataRu)
      Adds new data for creating index element
      Parameters:
      uri - URI of indexing element, can't be null
      eClass - EClass of indexing element, can't be null
      name - actual name of indexing element, can't be null
      userData - additional data of creating indexing element, can be null
      nameRu - additional Russian name of indexing element, can be null
      userDataRu - additional Russian data of creating indexing element, can be null
    • addData

      protected void addData(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EClass eClass, org.eclipse.xtext.naming.QualifiedName name, Map<String,String> userData, org.eclipse.xtext.naming.QualifiedName nameRu, Map<String,String> userDataRu)
      Adds new data for creating index element
      Parameters:
      uri - URI of indexing element, can't be null
      eClass - EClass of indexing element, can't be null
      name - actual name of indexing element, can't be null
      userData - additional data of creating indexing element, can be null
      nameRu - additional Russian name of indexing element, can be null
      userDataRu - additional Russian data of creating indexing element, can be null
    • addData

      protected void addData(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EClass eClass, String name, Map<String,String> userData, String nameRu, Map<String,String> userDataRu, org.eclipse.xtext.naming.QualifiedName qName, org.eclipse.xtext.naming.QualifiedName qNameRu)
      Adds new data for creating index element
      Parameters:
      uri - URI of indexing element, can't be null
      eClass - EClass of indexing element, can't be null
      name - actual name of indexing element, can't be null
      userData - additional data of creating indexing element, can be null
      nameRu - additional Russian name of indexing element, can be null
      userDataRu - additional Russian data of creating indexing element, can be null
      qName - actual qualified name of indexing element, can't be null
      qNameRu - additional qualified Russian name of indexing element, can be null
    • createDataRequestor

      protected IEObjectDataRequestorExtention createDataRequestor()
      Creates implementation of IEObjectDataRequestorExtention
      Returns:
      implementation of IEObjectDataRequestorExtention, never null
    • ensureInitialized

      public void ensureInitialized()
      Initializing data in provider. Special method which should be called in EObjectProviderRegistry.get(EClass, Version) when corresponding provider was found