ccc.client.core
Class I18n

java.lang.Object
  extended by ccc.client.core.I18n

public class I18n
extends java.lang.Object

Service locator for i18n.

Author:
Civic Computing Ltd.

Field Summary
static ActionStatusConstants ACTION_STATUSES
           
static CommandTypeConstants COMMAND_TYPES
           
static ErrorDescriptions ERROR_DESCRIPTIONS
           
static ErrorResolutions ERROR_RESOLUTIONS
           
static UIConstants UI_CONSTANTS
           
static UIMessages UI_MESSAGES
           
static ActionNameConstants USER_ACTIONS
           
 
Constructor Summary
I18n()
           
 
Method Summary
static java.lang.String camelCase(java.lang.String string)
          Convert a string to 'camel case'.
static java.lang.String getLocalisedStatus(ActionStatus status)
          Looks up for localised string for the ActionStatus.
static java.lang.String getLocalisedType(CommandType command)
          Looks up for localised string for the command type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_CONSTANTS

public static UIConstants UI_CONSTANTS

UI_MESSAGES

public static UIMessages UI_MESSAGES

ERROR_DESCRIPTIONS

public static ErrorDescriptions ERROR_DESCRIPTIONS

ERROR_RESOLUTIONS

public static ErrorResolutions ERROR_RESOLUTIONS

ACTION_STATUSES

public static ActionStatusConstants ACTION_STATUSES

COMMAND_TYPES

public static CommandTypeConstants COMMAND_TYPES

USER_ACTIONS

public static ActionNameConstants USER_ACTIONS
Constructor Detail

I18n

public I18n()
Method Detail

getLocalisedStatus

public static java.lang.String getLocalisedStatus(ActionStatus status)
Looks up for localised string for the ActionStatus.

Parameters:
status - The status to localise.
Returns:
The localised string or name of the enum if nothing found.

getLocalisedType

public static java.lang.String getLocalisedType(CommandType command)
Looks up for localised string for the command type.

Parameters:
command - The command to localise.
Returns:
The localised string or name of the enum if nothing found.

camelCase

public static java.lang.String camelCase(java.lang.String string)
Convert a string to 'camel case'.

Parameters:
string - The string to convert to camel case.
Returns:
The string in camel case.


Copyright © 2010. All Rights Reserved.