Class FormResource

    • Method Detail

      • getName

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

        public String getPluginKey()
        Description copied from interface: IFormResource
        Gets the key of the plugin JAR bundle that provided this resource, from the manifest entry Plugin-Key .
        Specified by:
        getPluginKey in interface IFormResource
        Returns:
        The key of the plugin that provided this resource.
      • getPluginFileKey

        public String getPluginFileKey()
        Description copied from interface: IFormResource
        Gets the file key of the resource within the plugin JAR bundle that provided this resource, from the manifest entry Plugin-File-Key.
        Specified by:
        getPluginFileKey in interface IFormResource
        Returns:
        The file key of the resource within the plugin JAR bundle that provided this resource.
      • formResourcePlugin

        public static IFormResource formResourcePlugin​(String pluginKey,
                                                       String pluginFileKey,
                                                       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.
        pluginFileKey - The file 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 pluginFileKey,
                                                        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.
        pluginFileKey - The file 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.