Class XdtoTypeUtil

java.lang.Object
com._1c.g5.v8.dt.xdto.model.type.XdtoTypeUtil

public final class XdtoTypeUtil extends Object
Contains utils methods for creating platform types by xdto types
  • Method Details

    • createObjectTypeProperty

      public static List<Property> createObjectTypeProperty(ObjectType objectType, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.xtext.scoping.IScope typeScope, org.eclipse.emf.ecore.EObject context)
      Gets Propertys by ObjectType for bsl language
      Parameters:
      objectType - xdto object type with properties, cannot be null
      scopeProvider - actual IScopeProvider for getting available xdto types by context, cannot be null
      typeScope - IScope of the TypeItems, cannot be null
      context - actual context EObject, cannot be null
      Returns:
      list of Propertys by ObjectType for bsl language, never null
    • copyDataFromBaseType

      public static void copyDataFromBaseType(XdtoType proxyType, Type type)
      Copies content of the type to XdtoType
      Parameters:
      proxyType - filling XdtoType, cannot be null
      type - base platform Type for filling XdtoType, cannot be null