Class AbstractUObjectConverter

    • Constructor Detail

      • AbstractUObjectConverter

        public AbstractUObjectConverter()
    • Method Detail

      • isAppropriate

        public boolean isAppropriate​(String typeName,
                                     Version version)
        Description copied from interface: IUObjectConverter
        Checks that this converter can convert TypeItem with name typeName
        Specified by:
        isAppropriate in interface IUObjectConverter
        Parameters:
        typeName - name of candidate TypeItem for converting to universal type, can't be null
        version - actual runtime version, can't be null
        Returns:
        true if type corresponding to typeName can be converted to universal type by this converter, false otherwise
      • addAllowedTypeName

        public void addAllowedTypeName​(String typeName)
        Add allowed type name for this converter
        Parameters:
        typeName - new type name, can't be null or empty
      • addAllowedruntimeVersion

        public void addAllowedruntimeVersion​(Version version)
        Add allowed runtime version for this converter
        Parameters:
        version - new version, can't be null
      • recomputePropertyTypes

        protected void recomputePropertyTypes​(String typeName,
                                              Version version,
                                              Map<String,​TypeItem> earlierComputedUTypes,
                                              Type uType,
                                              org.eclipse.emf.ecore.resource.Resource resource)
        Converts all types for properties
        Parameters:
        typeName - name of initial type, can't be null
        version - actual Version of configuration, can't be null
        earlierComputedUTypes - map - (type name; its universal type), can be null if universal types weren't computed earlier
        uType - created converting type, can't be null
        resource - actual Resource for resolving, can't be null