|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IXMLResourceBundle
Interface for resource bundles that support XML formats and can return IResource objects.
XMLResourceBundle| Method Summary | |
|---|---|
IResource |
getResource(String id)
Requests a resource from the bundle. |
IResource |
getResource(String namespace,
String id)
Requests a resource from the bundle. |
String |
getText(String id)
Requests the text content of a resource from the bundle. |
String |
getText(String namespace,
String id)
Requests the text content of a resource from the bundle. |
String |
getTextDefault(String id,
String fallback)
Requests the text content of a resource from the bundle. |
String |
getTextDefault(String namespace,
String id,
String fallback)
Requests the text content of a resource from the bundle. |
| Method Detail |
|---|
IResource getResource(String namespace,
String id)
This method works similar as the getObject method, but casts the object to an IResource.
namespace - namespaceid - id
MissingResourceException - if no object for the given key can be found
IllegalArgumentException - if an argument is nullResourceBundle.getObject(java.lang.String)IResource getResource(String id)
This method always uses an empty namespace. This method works similar as the getObject method, but casts the object to an IResource.
id - id
MissingResourceException - if no object for the given key can be found
IllegalArgumentException - if an argument is nullResourceBundle.getObject(java.lang.String)
String getText(String namespace,
String id)
namespace - namespaceid - id
MissingResourceException - if no object for the given key can be found
IllegalArgumentException - if an argument is nullXMLResourceBundle.getResource(java.lang.String, java.lang.String)String getText(String id)
This method always uses an empty namespace.
id - id
MissingResourceException - if no object for the given key can be found
IllegalArgumentException - if an argument is nullXMLResourceBundle.getResource(java.lang.String, java.lang.String)
String getTextDefault(String namespace,
String id,
String fallback)
The default fallback string is returned if the resource cannot be found.
namespace - namespaceid - idfallback - fallback text
XMLResourceBundle.getResource(java.lang.String, java.lang.String)
String getTextDefault(String id,
String fallback)
Always uses an empty namespace. The default fallback string is returned if the resource cannot be found.
id - idfallback - fallback text
IllegalArgumentException - if an argument is nullXMLResourceBundle.getResource(java.lang.String, java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||