Class FormResource

    • Constructor Detail

      • FormResource

        @Deprecated
        public FormResource​(String name,
                            EFormResourceType type,
                            String resName,
                            byte[] resData,
                            String cacheKey)
        Deprecated.
        Use FormResource(String, String, EFormResourceType, String, byte[], String, EFormResourceSourceType) instead.
        Parameters:
        name - Name of the resource.
        type - Type of the resource.
        resName - Name of the resource.
        resData - Data of the resource.
        cacheKey - Cache key of the resource.
    • Method Detail

      • getPluginKey

        public String getPluginKey()
        Description copied from interface: IFormResource
        Gets the key of the plugin JAR bundle that provided this resource.
        Specified by:
        getPluginKey in interface IFormResource
        Returns:
        The key of the plugin that provided this resource.
      • getName

        public String getName()
        The name of the plugin that provides this resource.
        Specified by:
        getName in interface IFormResource
        Returns:
        The name of the plugin that provides this resource.
      • formResourcePlugin

        public static IFormResource formResourcePlugin​(String pluginKey,
                                                       String pluginName,
                                                       EFormResourceType type,
                                                       String resName,
                                                       byte[] resData,
                                                       String cacheKey)
        Creates a form resource provided by a form resource plugin (IFCPluginResource).
        Parameters:
        pluginKey - The key of the plugin JAR that provides the resource.
        pluginName - The name of the IFCPlugin that provides the resource.
        type - The type of the resource.
        resName - The file name of the resource.
        resData - The data of the resource.
        cacheKey - The cache key of the resource.
        Returns:
        The form resource.
      • formResourcesPlugin

        public static IFormResource formResourcesPlugin​(String pluginKey,
                                                        String pluginName,
                                                        EFormResourceType type,
                                                        String resName,
                                                        byte[] resData,
                                                        String cacheKey)
        Creates a form resource provided by a form resources plugin (IFCPluginResources).
        Parameters:
        pluginKey - The key of the plugin JAR that provides the resource.
        pluginName - The name of the IFCPlugin that provides the resource.
        type - The type of the resource.
        resName - The file name of the resource.
        resData - The data of the resource.
        cacheKey - The cache key of the resource.
        Returns:
        The form resource.