Class DocumentInitializer

All Implemented Interfaces:
IMdObjectInitializer<Document>, IMdObjectInitializer.IReferenceUpdater<Document>

public class DocumentInitializer extends AbstractBasicDbObjectInitializer<Document>
Document metadata object initializer
  • Constructor Details

    • DocumentInitializer

      public DocumentInitializer()
  • Method Details

    • create

      public Document create(IV8Project v8project, Version version)
      Description copied from interface: IMdObjectInitializer
      Creates metadata object for given configuration and runtime version
      Parameters:
      v8project - the project parameters (maybe null)
      version - the 1C:Enterprise runtime version to create object for, (not null)
      Returns:
      properly initialized metadata object (never null)
    • createChildObject

      public org.eclipse.emf.ecore.EObject createChildObject(org.eclipse.emf.ecore.EClass childType, org.eclipse.emf.ecore.EObject context, Version version)
      Description copied from interface: IMdObjectInitializer
      Creates context child object of type childType
      Specified by:
      createChildObject in interface IMdObjectInitializer<Document>
      Overrides:
      createChildObject in class BasicMdObjectInitializer<Document>
      Parameters:
      childType - the child object type (not null)
      context - the parent object (not null)
      version - the 1C:Enterprise runtime version (not null)
      Returns:
      properly initialized metadata child object or null if there cannot be child object
    • getInputByStringFieldNames

      protected List<String> getInputByStringFieldNames(Document document)
      Description copied from class: AbstractBasicDbObjectInitializer
      Returns list of input by string field names for given object.
      Specified by:
      getInputByStringFieldNames in class AbstractBasicDbObjectInitializer<Document>
      Parameters:
      document - the metadata object (not null)
      Returns:
      list of input by string field names for given object