Package com._1c.g5.v8.dt.platform
Class AbstractEObjectProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.AbstractEObjectProvider
-
- All Implemented Interfaces:
IEObjectProvider
public abstract class AbstractEObjectProvider extends Object implements IEObjectProvider
Abstract base class to be extended byIEObjectProvider
implementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.platform.IEObjectProvider
IEObjectProvider.Registry
-
-
Constructor Summary
Constructors Constructor Description AbstractEObjectProvider(org.eclipse.emf.ecore.EClass eClass)
Constructor.
This constructor presumes thatEClass
passed in a parameter isn't abstract.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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 elementprotected 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 elementprotected 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 elementprotected IEObjectDataRequestorExtention
createDataRequestor()
Creates implementation ofIEObjectDataRequestorExtention
org.eclipse.emf.ecore.EObject
createProxy(String name)
Creates proxy by the object name.void
ensureInitialized()
Initializing data in provider.org.eclipse.emf.ecore.EClass
getEClass()
org.eclipse.xtext.resource.IEObjectDescription
getEObjectDescription(String name)
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 usingfilter
.org.eclipse.emf.ecore.EObject
getProxy(String name)
Creates proxy by the object nameorg.eclipse.emf.common.util.URI
getUri(String name)
GetsURI
by the object name.protected abstract void
init()
Special method with contains logic for initializing provider data.
-
-
-
Method Detail
-
getEClass
public org.eclipse.emf.ecore.EClass getEClass()
- Specified by:
getEClass
in interfaceIEObjectProvider
- Returns:
EClass
-
getUri
public org.eclipse.emf.common.util.URI getUri(String name)
Description copied from interface:IEObjectProvider
GetsURI
by the object name.- Specified by:
getUri
in interfaceIEObjectProvider
- 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 interfaceIEObjectProvider
- 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 interfaceIEObjectProvider
- 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 interfaceIEObjectProvider
- 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 usingfilter
.- Specified by:
getEObjectDescriptions
in interfaceIEObjectProvider
- Parameters:
filter
-Predicate
used to filter instances ofIEObjectDescription
. May benull
.- Returns:
Iterable
ofIEObjectDescription
filtered usingfilter
-
init
protected abstract void init()
Special method with contains logic for initializing provider data. This method is called inensureInitialized()
-
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 benull
eClass
-EClass
of indexing element, can't benull
name
- actual name of indexing element, can't benull
userData
- additional data of creating indexing element, can benull
nameRu
- additional Russian name of indexing element, can benull
userDataRu
- additional Russian data of creating indexing element, can benull
-
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 benull
eClass
-EClass
of indexing element, can't benull
name
- actual name of indexing element, can't benull
userData
- additional data of creating indexing element, can benull
nameRu
- additional Russian name of indexing element, can benull
userDataRu
- additional Russian data of creating indexing element, can benull
-
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 benull
eClass
-EClass
of indexing element, can't benull
name
- actual name of indexing element, can't benull
userData
- additional data of creating indexing element, can benull
nameRu
- additional Russian name of indexing element, can benull
userDataRu
- additional Russian data of creating indexing element, can benull
qName
- actual qualified name of indexing element, can't benull
qNameRu
- additional qualified Russian name of indexing element, can benull
-
createDataRequestor
protected IEObjectDataRequestorExtention createDataRequestor()
Creates implementation ofIEObjectDataRequestorExtention
- Returns:
- implementation of
IEObjectDataRequestorExtention
, nevernull
-
ensureInitialized
public void ensureInitialized()
Initializing data in provider. Special method which should be called inEObjectProviderRegistry.get(EClass, Version)
when corresponding provider was found
-
-