Package de.xima.fc.mdl.form
Class FormResource
- java.lang.Object
-
- de.xima.fc.mdl.form.FormResource
-
- All Implemented Interfaces:
IFormResource,Serializable
public class FormResource extends Object implements IFormResource
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormResource(String name, EFormResourceType type, String resName, byte[] resData, String cacheKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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).StringgetCacheKey()StringgetName()The name of the plugin that provides this resource.StringgetPluginKey()Gets the key of the plugin JAR bundle that provided this resource.byte[]getResourceData()StringgetResourceName()EFormResourceTypegetResourceType()EFormResourceSourceTypegetSourceType()Gets the source that provided this resource.
-
-
-
Constructor Detail
-
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 Detail
-
getResourceType
public EFormResourceType getResourceType()
- Specified by:
getResourceTypein interfaceIFormResource
-
getPluginKey
public String 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
public String getResourceName()
- Specified by:
getResourceNamein interfaceIFormResource
-
getResourceData
public byte[] getResourceData()
- Specified by:
getResourceDatain interfaceIFormResource
-
getCacheKey
public String getCacheKey()
- Specified by:
getCacheKeyin interfaceIFormResource
-
getSourceType
public EFormResourceSourceType getSourceType()
Description copied from interface:IFormResourceGets the source that provided this resource.- Specified by:
getSourceTypein interfaceIFormResource- Returns:
- The source that provided this resource.
-
getName
public String 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.
-
-