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)
Deprecated.UseFormResource(String, String, EFormResourceType, String, byte[], String, EFormResourceSourceType)
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).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).String
getCacheKey()
String
getName()
The name of the plugin that provides this resource.String
getPluginKey()
Gets the key of the plugin JAR bundle that provided this resource.byte[]
getResourceData()
String
getResourceName()
EFormResourceType
getResourceType()
EFormResourceSourceType
getSourceType()
Gets the source that provided this resource.
-
-
-
Constructor Detail
-
FormResource
@Deprecated public FormResource(String name, EFormResourceType type, String resName, byte[] resData, String cacheKey)
Deprecated.UseFormResource(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
-
getResourceType
public EFormResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIFormResource
-
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 interfaceIFormResource
- Returns:
- The key of the plugin that provided this resource.
-
getResourceName
public String getResourceName()
- Specified by:
getResourceName
in interfaceIFormResource
-
getResourceData
public byte[] getResourceData()
- Specified by:
getResourceData
in interfaceIFormResource
-
getCacheKey
public String getCacheKey()
- Specified by:
getCacheKey
in interfaceIFormResource
-
getSourceType
public EFormResourceSourceType getSourceType()
Description copied from interface:IFormResource
Gets the source that provided this resource.- Specified by:
getSourceType
in interfaceIFormResource
- Returns:
- The source that provided this resource.
-
getName
public String getName()
The name of the plugin that provides this resource.- Specified by:
getName
in 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.
-
-