Package com._1c.g5.v8.dt.aggregates
Class AggregatesObjectsFactory
java.lang.Object
com._1c.g5.v8.dt.aggregates.AggregatesObjectsFactory
- All Implemented Interfaces:
IModelObjectFactory
IModelObjectFactory
implementation for creating aggregates objects with default values filled in.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.eclipse.emf.ecore.EObject>
Tcreate
(org.eclipse.emf.ecore.EClass eClass, IV8Project v8project) Creates object of typeEClass
with the given V8 project object.<T extends org.eclipse.emf.ecore.EObject>
TCreates object of typeEClass
without any context.<T extends org.eclipse.emf.ecore.EObject>
Tcreate
(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject contextObject, Version version) Creates object of typeEClass
with the given context object.void
fillDefaultReferences
(org.eclipse.emf.ecore.EObject object) Fillsobject
default cross references.
-
Constructor Details
-
AggregatesObjectsFactory
public AggregatesObjectsFactory()
-
-
Method Details
-
create
public <T extends org.eclipse.emf.ecore.EObject> T create(org.eclipse.emf.ecore.EClass eClass, Version version) Description copied from interface:IModelObjectFactory
Creates object of typeEClass
without any context.
This method is equals tocreate(EClass, null, Version)
- Specified by:
create
in interfaceIModelObjectFactory
- Type Parameters:
T
- type of new object- Parameters:
eClass
- the EClass of new object (notnull
).version
- current version of project. Can't benull
- Returns:
- new object or null if this factory can't create objects of given type.
-
create
public <T extends org.eclipse.emf.ecore.EObject> T create(org.eclipse.emf.ecore.EClass eClass, IV8Project v8project) Description copied from interface:IModelObjectFactory
Creates object of typeEClass
with the given V8 project object.- Specified by:
create
in interfaceIModelObjectFactory
- Type Parameters:
T
- type of new object- Parameters:
eClass
- the EClass of new object (notnull
).v8project
- the context V8 project. Can't benull
- Returns:
- new object or null if this factory can't create objects of given type.
-
create
public <T extends org.eclipse.emf.ecore.EObject> T create(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject contextObject, Version version) Description copied from interface:IModelObjectFactory
Creates object of typeEClass
with the given context object.- Specified by:
create
in interfaceIModelObjectFactory
- Type Parameters:
T
- type of new object- Parameters:
eClass
- the EClass of new object (notnull
).contextObject
- the context object (notnull
).version
- current version of project. Can't benull
. We should get version because we don't know - there iscontextObject
in configuration.- Returns:
- new object or null if this factory can't create objects of given type and context.
-
fillDefaultReferences
public void fillDefaultReferences(org.eclipse.emf.ecore.EObject object) Description copied from interface:IModelObjectFactory
Fillsobject
default cross references.- Specified by:
fillDefaultReferences
in interfaceIModelObjectFactory
- Parameters:
object
- object to fill values in (notnull
).
-