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 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 pluginName, EFormResourceType type, String resName, byte[] resData, String cacheKey) Creates a form resource provided by a form resources plugin (IFCPluginResources).getName()The name of the plugin that provides this resource.Gets the key of the plugin JAR bundle that provided this resource.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
-
getResourceType
- Specified by:
getResourceTypein interfaceIFormResource
-
getPluginKey
Description copied from interface:IFormResourceGets the key of the plugin JAR bundle that provided this resource.- Specified by:
getPluginKeyin interfaceIFormResource- Returns:
- The key of the plugin that provided this resource.
-
getResourceName
- Specified by:
getResourceNamein interfaceIFormResource
-
getResourceData
public byte[] getResourceData()- Specified by:
getResourceDatain interfaceIFormResource
-
getCacheKey
- Specified by:
getCacheKeyin interfaceIFormResource
-
getSourceType
Description copied from interface:IFormResourceGets the source that provided this resource.- Specified by:
getSourceTypein interfaceIFormResource- Returns:
- The source that provided this resource.
-
getName
The name of the plugin that provides this resource.- Specified by:
getNamein interfaceIFormResource- 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.
-
formResourcePlugin(String, String, EFormResourceType, String, byte[], String)orformResourcesPlugin(String, String, EFormResourceType, String, byte[], String).