Package com._1c.g5.v8.dt.md.model
Class MdObjectFactory
java.lang.Object
com._1c.g5.v8.dt.md.model.MdObjectFactory
- All Implemented Interfaces:
IModelObjectFactory
IModelObjectFactory implementation for creating md 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 type, IV8Project v8project) Creates object of typeEClasswith the given V8 project object.<T extends org.eclipse.emf.ecore.EObject>
TCreates object of typeEClasswithout any context.<T extends org.eclipse.emf.ecore.EObject>
Tcreate(org.eclipse.emf.ecore.EClass type, org.eclipse.emf.ecore.EObject contextObject, Version version) Creates object of typeEClasswith the given context object.voidfillDefaultReferences(org.eclipse.emf.ecore.EObject object) Fillsobjectdefault cross references.
-
Constructor Details
-
MdObjectFactory
public MdObjectFactory()
-
-
Method Details
-
create
public <T extends org.eclipse.emf.ecore.EObject> T create(org.eclipse.emf.ecore.EClass type, Version version) Description copied from interface:IModelObjectFactoryCreates object of typeEClasswithout any context.
This method is equals tocreate(EClass, null, Version)- Specified by:
createin interfaceIModelObjectFactory- Type Parameters:
T- type of new object- Parameters:
type- 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 type, IV8Project v8project) Description copied from interface:IModelObjectFactoryCreates object of typeEClasswith the given V8 project object.- Specified by:
createin interfaceIModelObjectFactory- Type Parameters:
T- type of new object- Parameters:
type- 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 type, org.eclipse.emf.ecore.EObject contextObject, Version version) Description copied from interface:IModelObjectFactoryCreates object of typeEClasswith the given context object.- Specified by:
createin interfaceIModelObjectFactory- Type Parameters:
T- type of new object- Parameters:
type- 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 iscontextObjectin 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:IModelObjectFactoryFillsobjectdefault cross references.- Specified by:
fillDefaultReferencesin interfaceIModelObjectFactory- Parameters:
object- object to fill values in (notnull).
-