com.infoengine.webject.mgt
Class GetResource

java.lang.Object
  extended bycom.infoengine.webject.Webject
      extended bycom.infoengine.webject.mgt.GetResource

public class GetResource
extends Webject

turns a resource bundle into an Info*Engine group the group has a single element containing one attribute for each key in the bundle. the attribute's name is the key and the attribute's value is the member of the resource bundle. string identifiers in the resource bundle associated with keys are stored as the metadata "id" on each attribute. use dsp.DisplayResource to retrieve messages from the resource group.

Example:
 <ie:webject name="Get-Resource" type="MGT">    <ie:param name="BUNDLE" data="com.infoengine.util.IEResource"/>    <ie:param name="GROUP_OUT" data="IEResource"/>  </ie:webject>


Constructor Summary
GetResource()
           
 
Method Summary
private  void getFieldKeys(Hashtable fields, String bundleName)
           
private  Group getResourceFromBundle(String bundle, String group)
           
private  Group getResourceFromProperties(String resource, String group, String locale)
           
 Task invoke(Task task)
           
 
Methods inherited from class com.infoengine.webject.Webject
booleanParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetResource

public GetResource()
Method Detail

invoke

public Task invoke(Task task)
            throws IEException
Specified by:
invoke in class Webject
Throws:
IEException

getResourceFromBundle

private Group getResourceFromBundle(String bundle,
                                    String group)
                             throws IEException
Throws:
IEException

getFieldKeys

private void getFieldKeys(Hashtable fields,
                          String bundleName)

getResourceFromProperties

private Group getResourceFromProperties(String resource,
                                        String group,
                                        String locale)
                                 throws IEException
Throws:
IEException