com.infoengine.webject.mgt
Class GetResource
java.lang.Object
com.infoengine.webject.Webject
com.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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetResource
public GetResource()
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