public class ResourceBundleMarker extends Object
Title: Holds information from a resource bundle marker tag
Description:
Copyright: Copyright (c) 2002
Company:
| Constructor and Description |
|---|
ResourceBundleMarker(String resourceBundleID,
String resourceKey,
String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object c1,
Object c2)
Compare between two objects, sort by their value
|
int |
countZeroes(String str) |
String |
drawMarker()
Generates a valid resource bundle marker from internal value
|
static String |
drawMarker(String resourceBundleID,
String resourceKey,
String defaultValue)
Generates a valid resource bundle marker
|
String |
getDefaultValue()
Returns the default value
|
String |
getResourceBundleID()
Returns the resource bundle identifier.
|
String |
getResourceKey()
Returns the resource key
|
String |
getValue()
Returns the internal value.
|
static String |
getValue(String value,
String resourceBundle,
String valueKey,
Locale locale)
Retrieves the real value of a given key.
|
static ResourceBundleMarker |
parseMarkerValue(String markerStr)
Generates a ResourceBundleMarker Bean from a resource bundle marker value String
|
void |
setValue(String value)
Set the internal value.
|
public String getResourceBundleID()
public String getResourceKey()
public String getValue()
public static String getValue(String value, String resourceBundle, String valueKey, Locale locale)
value - The default valueresourceBundle - The bundleKey or resourceBundle namevalueKey - Key in the bundle to uselocale - Locale to usepublic String getDefaultValue()
public String drawMarker()
resourceBundleID - resourceKey - defaultValue - public void setValue(String value)
value - public static ResourceBundleMarker parseMarkerValue(String markerStr)
value - a valid tag :
public static String drawMarker(String resourceBundleID, String resourceKey, String defaultValue)
resourceBundleID - resourceKey - defaultValue - public int compare(Object c1, Object c2) throws ClassCastException
Object - Object - ClassCastExceptionpublic int countZeroes(String str)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.