Interface ITypeDescriptionAdoptSupport


  • public interface ITypeDescriptionAdoptSupport
    The adopting support for TypeDescription's
    • Method Detail

      • adoptType

        TypeDescription adoptType​(MdObject nativeObject,
                                  TypeDescription nativeObjectType,
                                  Version version,
                                  IAdopterContext context)
        Adopt the given type with respect to its type content. This method is equivalent to:
         adoptType(nativeObjectType, version, context, true)
         
        Parameters:
        nativeObject - the native type owner metadata object, may be null
        nativeObjectType - the native object type, cannot be null
        version - the 1C:Enterprise runtime version, cannot be null
        context - the adopter context, cannot be null
        Returns:
        the adopted type, never null
      • adoptType

        TypeDescription adoptType​(org.eclipse.emf.ecore.EObject nativeObject,
                                  TypeDescription nativeObjectType,
                                  Version version,
                                  IAdopterContext context,
                                  boolean multiRefAsAnyRef)
        Adopt the given type with respect to its type content.
        Parameters:
        nativeObject - the native type owner metadata object, may be null
        nativeObjectType - the native object type, cannot be null
        version - the 1C:Enterprise runtime version, cannot be null
        context - the adopter context, cannot be null
        multiRefAsAnyRef - whether need to convert multi reference to metadata objects (complex type) as AnyRef
        Returns:
        the adopted type, never null
      • adoptTypeItem

        TypeItem adoptTypeItem​(org.eclipse.emf.ecore.EObject nativeObject,
                               TypeItem nativeTypeItem,
                               Version version,
                               IAdopterContext context)
        Adopt the given type with respect to its type content.
        Parameters:
        nativeObject - the native type owner metadata object, may be null
        nativeTypeItem - the native type item, cannot be null
        version - the 1C:Enterprise runtime version, cannot be null
        context - the adopter context, cannot be null
        Returns:
        the adopted type item, never null
      • adoptMultiStateType

        TypeDescriptionExtension adoptMultiStateType​(MdObject nativeObject,
                                                     TypeDescription nativeObjectType,
                                                     Version version,
                                                     IAdopterContext context)
        Adopt the given multi state type with respect to its type content. This method is equivalent to:
         adoptType(nativeObjectType, version, context, true)
         
        Parameters:
        nativeObject - the native type owner metadata object, may be null
        nativeObjectType - the native object type, cannot be null
        version - the 1C:Enterprise runtime version, cannot be null
        context - the adopter context, cannot be null
        Returns:
        the adopted multi state type, never null
      • adoptMultiStateType

        TypeDescriptionExtension adoptMultiStateType​(MdObject nativeObject,
                                                     TypeDescription nativeObjectType,
                                                     Version version,
                                                     IAdopterContext context,
                                                     boolean multiRefAsAnyRef)
        Adopt the given multi state type with respect to its type content.
        Parameters:
        nativeObject - the native type owner metadata object, may be null
        nativeObjectType - the native object type, cannot be null
        version - the 1C:Enterprise runtime version, cannot be null
        context - the adopter context, cannot be null
        multiRefAsAnyRef - whether need to convert multi reference to metadata objects (complex type) as AnyRef
        Returns:
        the adopted multi state type, never null