Class AbstractUObjectConverterForCollectionTypes

    • Constructor Detail

      • AbstractUObjectConverterForCollectionTypes

        public AbstractUObjectConverterForCollectionTypes()
    • Method Detail

      • convert

        public TypeItem convert​(TypeItem type,
                                Version version,
                                Map<String,​TypeItem> earlierComputedUTypes,
                                org.eclipse.emf.ecore.resource.Resource resource)
        Description copied from interface: IUObjectConverter
        Converts TypeItem to universal type
        Specified by:
        convert in interface IUObjectConverter
        Overrides:
        convert in class AbstractUObjectConverterForDynamicTypes
        Parameters:
        type - converting TypeItem, can't be null
        version - actual configuration version for converting type. Can't be null
        earlierComputedUTypes - map - (type name; its universal type), can be null if universal types weren't computed earlier
        resource - actual Resource for resolving, can't be null
        Returns:
        universal type corresponding to type. Never null
      • addDerivedProperty

        protected void addDerivedProperty​(TypeItem typeItem,
                                          TypeItem newUType,
                                          Version version,
                                          Map<String,​TypeItem> earlierComputedUTypes,
                                          org.eclipse.emf.ecore.resource.Resource resource)
        Add derived property from base type of element in collection in base iterable type to converting element of collection type
        Parameters:
        typeItem - base type of element in collection in base iterable type, can't be null
        newUType - converted iterable type, can't be null
        version - actual version, can't be null
        earlierComputedUTypes - map - (type name; its universal type), can be null if universal types weren't computed earlier
        resource - actual Resource for resolving, can't be null
      • replaceAllMethodRetValType

        protected void replaceAllMethodRetValType​(TypeItem type,
                                                  Type newItemType)
        Change returning type of method in converted base iterable type
        Parameters:
        type - converted base iterable type, can't be null
        newItemType - converted type of element in collection in converted base iterable type, can't be null