Interface IEObjectProvider

All Known Implementing Classes:
AbstractEObjectProvider, EmptyEObjectProvider, PlatformColorStubEObjectProvider, PlatformFontStubEObjectProvider, PlatformMethodStubEObjectProvider, PlatformPictureStubEObjectProvider, PlatformTypeStubEObjectProvider

public interface IEObjectProvider
Provides information describing instances of some EClass.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Registry mapping EClass to IEObjectProvider.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collectResources(Collection<org.eclipse.emf.common.util.URI> destination)
    Collects resources this provider works with.
    <T extends org.eclipse.emf.ecore.EObject>
    T
    Creates proxy by the object name.
    org.eclipse.emf.ecore.EClass
     
    org.eclipse.xtext.resource.IEObjectDescription
    Returns EObject description associated with specified name.
    Iterable<org.eclipse.xtext.resource.IEObjectDescription>
    getEObjectDescriptions(com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
    Returns EObject descriptions provided by this instance possibly filtered using filter.
    <T extends org.eclipse.emf.ecore.EObject>
    T
    Creates proxy by the object name
    org.eclipse.emf.common.util.URI
    getUri(String name)
    Gets URI by the object name.
  • Method Details

    • getEClass

      org.eclipse.emf.ecore.EClass getEClass()
      Returns:
      EClass
    • getUri

      org.eclipse.emf.common.util.URI getUri(String name)
      Gets URI by the object name.
      Parameters:
      name - object name.
      Returns:
      URI corresponding to name.
      Throws:
      IllegalArgumentException - if URI for name can't be obtained.
    • createProxy

      <T extends org.eclipse.emf.ecore.EObject> T createProxy(String name)
      Creates proxy by the object name.
      Parameters:
      name - object name.
      Returns:
      created proxy.
      Throws:
      IllegalArgumentException - if proxy for name can't be created.
    • getProxy

      <T extends org.eclipse.emf.ecore.EObject> T getProxy(String name)
      Creates proxy by the object name
      Parameters:
      name - object name
      Returns:
      created proxy or null if proxy wasn't created
    • getEObjectDescriptions

      Iterable<org.eclipse.xtext.resource.IEObjectDescription> getEObjectDescriptions(com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
      Returns EObject descriptions provided by this instance possibly filtered using filter.
      Parameters:
      filter - Predicate used to filter instances of IEObjectDescription. May be null.
      Returns:
      Iterable of IEObjectDescription filtered using filter
    • getEObjectDescription

      org.eclipse.xtext.resource.IEObjectDescription getEObjectDescription(String name)
      Returns EObject description associated with specified name.
      Parameters:
      name - object name
    • collectResources

      void collectResources(Collection<org.eclipse.emf.common.util.URI> destination)
      Collects resources this provider works with.
      Parameters:
      destination - The destination collection to add the resources to. May not be null.