Class AggregatesObjectsFactory

java.lang.Object
com._1c.g5.v8.dt.aggregates.AggregatesObjectsFactory
All Implemented Interfaces:
IModelObjectFactory

public class AggregatesObjectsFactory extends Object implements IModelObjectFactory
IModelObjectFactory implementation for creating aggregates objects with default values filled in.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.eclipse.emf.ecore.EObject>
    T
    create(org.eclipse.emf.ecore.EClass eClass, IV8Project v8project)
    Creates object of type EClass with the given V8 project object.
    <T extends org.eclipse.emf.ecore.EObject>
    T
    create(org.eclipse.emf.ecore.EClass eClass, Version version)
    Creates object of type EClass without any context.
    <T extends org.eclipse.emf.ecore.EObject>
    T
    create(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject contextObject, Version version)
    Creates object of type EClass with the given context object.
    void
    fillDefaultReferences(org.eclipse.emf.ecore.EObject object)
    Fills object default cross references.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 type EClass without any context.
      This method is equals to create(EClass, null, Version)
      Specified by:
      create in interface IModelObjectFactory
      Type Parameters:
      T - type of new object
      Parameters:
      eClass - the EClass of new object (not null).
      version - current version of project. Can't be null
      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 type EClass with the given V8 project object.
      Specified by:
      create in interface IModelObjectFactory
      Type Parameters:
      T - type of new object
      Parameters:
      eClass - the EClass of new object (not null).
      v8project - the context V8 project. Can't be null
      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 type EClass with the given context object.
      Specified by:
      create in interface IModelObjectFactory
      Type Parameters:
      T - type of new object
      Parameters:
      eClass - the EClass of new object (not null).
      contextObject - the context object (not null).
      version - current version of project. Can't be null. We should get version because we don't know - there is contextObject 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
      Fills object default cross references.
      Specified by:
      fillDefaultReferences in interface IModelObjectFactory
      Parameters:
      object - object to fill values in (not null).