Class FormResource
java.lang.Object
de.xima.fc.mdl.form.FormResource
- All Implemented Interfaces:
IFormResource, Serializable
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFormResource(String name, EFormResourceType type, String resName, byte[] resData, String cacheKey) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic IFormResourceformResourcePlugin(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).static IFormResourceformResourcesPlugin(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).getName()Gets the name of the IFCPlugin that provided this resource.Gets the file key of the resource within the plugin JAR bundle that provided this resource, from the manifest entryPlugin-File-Key.Gets the key of the plugin JAR bundle that provided this resource, from the manifest entryPlugin-Key.byte[]Gets the source that provided this resource.
-
Constructor Details
-
FormResource
@Deprecated public FormResource(String name, EFormResourceType type, String resName, byte[] resData, String cacheKey) Deprecated.- 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 Details
-
getCacheKey
- Specified by:
getCacheKeyin interfaceIFormResource
-
getName
Description copied from interface:IFormResourceGets the name of the IFCPlugin that provided this resource.- Specified by:
getNamein interfaceIFormResource- Returns:
- The name of the IFCPlugin that provided this resource.
-
getPluginKey
Description copied from interface:IFormResourceGets the key of the plugin JAR bundle that provided this resource, from the manifest entryPlugin-Key.- Specified by:
getPluginKeyin interfaceIFormResource- Returns:
- The key of the plugin that provided this resource.
-
getPluginFileKey
Description copied from interface:IFormResourceGets the file key of the resource within the plugin JAR bundle that provided this resource, from the manifest entryPlugin-File-Key.- Specified by:
getPluginFileKeyin interfaceIFormResource- Returns:
- The file key of the resource within the plugin JAR bundle that provided this resource.
-
getResourceData
public byte[] getResourceData()- Specified by:
getResourceDatain interfaceIFormResource
-
getResourceName
- Specified by:
getResourceNamein interfaceIFormResource
-
getResourceType
- Specified by:
getResourceTypein interfaceIFormResource
-
getSourceType
Description copied from interface:IFormResourceGets the source that provided this resource.- Specified by:
getSourceTypein interfaceIFormResource- Returns:
- The source 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.
-
formResourcePlugin(String, String, String, EFormResourceType, String, byte[], String)orformResourcesPlugin(String, String, String, EFormResourceType, String, byte[], String).