|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.util.PropertyResourceKey
A key for a resource in a Java resource bundle.
The resource key can be of the following format:
Field Summary | |
private java.lang.String[] |
args
|
private static java.lang.String |
ARGUMENT_SEPARATOR
|
private java.lang.String |
bundle
|
private static java.lang.String |
BUNDLE_SEPARATOR
|
private java.lang.String |
key
|
private boolean |
literal
|
private static java.lang.String |
LITERAL_INDICATOR
|
Constructor Summary | |
PropertyResourceKey()
Constructor |
|
PropertyResourceKey(java.lang.String resourceKey)
Constructor |
Method Summary | |
java.lang.String |
asString()
Serializes the resource key into a String |
java.lang.String[] |
getArguments()
|
java.lang.String |
getBundle()
|
java.lang.String |
getKey()
|
boolean |
hasArguments()
Checks if this Resource Key has optional arguments for token replacement |
protected void |
initFromString(java.lang.String resourceKey)
|
boolean |
isLiteral()
|
static PropertyResourceKey |
parse(java.lang.String str)
Parses a String |
void |
setArguments(java.lang.String[] args)
|
void |
setBundle(java.lang.String bundle)
|
void |
setKey(java.lang.String key)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String LITERAL_INDICATOR
private static final java.lang.String BUNDLE_SEPARATOR
private static final java.lang.String ARGUMENT_SEPARATOR
private boolean literal
private java.lang.String key
private java.lang.String bundle
private java.lang.String[] args
Constructor Detail |
public PropertyResourceKey()
public PropertyResourceKey(java.lang.String resourceKey)
resourceKey
- property resource keyMethod Detail |
public static PropertyResourceKey parse(java.lang.String str)
str
- String to parse
null
protected void initFromString(java.lang.String resourceKey)
public java.lang.String[] getArguments()
public void setArguments(java.lang.String[] args)
args
- The arguments to set.public boolean hasArguments()
public java.lang.String getBundle()
public void setBundle(java.lang.String bundle)
bundle
- The bundle to set.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key to set.public boolean isLiteral()
public java.lang.String asString()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |