com.cc.framework.util
Class PropertyResourceKey

java.lang.Object
  extended bycom.cc.framework.util.PropertyResourceKey

public class PropertyResourceKey
extends java.lang.Object

A key for a resource in a Java resource bundle.

The resource key can be of the following format:

Version:
$Revision$
Author:
Harald Schulz

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

LITERAL_INDICATOR

private static final java.lang.String LITERAL_INDICATOR
See Also:
Constant Field Values

BUNDLE_SEPARATOR

private static final java.lang.String BUNDLE_SEPARATOR
See Also:
Constant Field Values

ARGUMENT_SEPARATOR

private static final java.lang.String ARGUMENT_SEPARATOR
See Also:
Constant Field Values

literal

private boolean literal

key

private java.lang.String key

bundle

private java.lang.String bundle

args

private java.lang.String[] args
Constructor Detail

PropertyResourceKey

public PropertyResourceKey()
Constructor


PropertyResourceKey

public PropertyResourceKey(java.lang.String resourceKey)
Constructor

Parameters:
resourceKey - property resource key
Method Detail

parse

public static PropertyResourceKey parse(java.lang.String str)
Parses a String

Parameters:
str - String to parse
Returns:
PropertyResourceKey or null

initFromString

protected void initFromString(java.lang.String resourceKey)

getArguments

public java.lang.String[] getArguments()
Returns:
Returns the arguments

setArguments

public void setArguments(java.lang.String[] args)
Parameters:
args - The arguments to set.

hasArguments

public boolean hasArguments()
Checks if this Resource Key has optional arguments for token replacement

Returns:
boolean

getBundle

public java.lang.String getBundle()
Returns:
Returns the bundle.

setBundle

public void setBundle(java.lang.String bundle)
Parameters:
bundle - The bundle to set.

getKey

public java.lang.String getKey()
Returns:
Returns the key.

setKey

public void setKey(java.lang.String key)
Parameters:
key - The key to set.

isLiteral

public boolean isLiteral()
Returns:
Returns the literal.

asString

public java.lang.String asString()
Serializes the resource key into a String

Returns:
String

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.