com.wewebu.ow.server.util
Class OwStringProperties

java.lang.Object
  extended by com.wewebu.ow.server.util.OwStringProperties

public class OwStringProperties
extends Object

Class for the string text mapped by key.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Method Summary
static OwStringProperties getInstance()
          Get instance
 Hashtable getProperties(Locale local_p)
          get the properties map with locale strings from cash
static void initialize(OwXMLUtil bootConfig)
          initialize custom localization files
 void putAll(Locale locale_p, Map properties_p)
          Adds the given key mapped localization properties to the current text mappings.
 void putLabel(Locale local_p, String key_p, String label_p)
          Adds the given key mapped label to the current text mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProperties

public Hashtable getProperties(Locale local_p)
                        throws OwDebugModeException
get the properties map with locale strings from cash

Parameters:
local_p - Locale
Throws:
OwDebugModeException

initialize

public static void initialize(OwXMLUtil bootConfig)
initialize custom localization files

Parameters:
bootConfig -

getInstance

public static OwStringProperties getInstance()
Get instance

Returns:
OwStringProperties

putAll

public void putAll(Locale locale_p,
                   Map properties_p)
            throws OwDebugModeException
Adds the given key mapped localization properties to the current text mappings.

Parameters:
locale_p -
properties_p -
Throws:
OwDebugModeException
Since:
3.1.0.5

putLabel

public void putLabel(Locale local_p,
                     String key_p,
                     String label_p)
              throws OwDebugModeException
Adds the given key mapped label to the current text mappings. The OwString.LABEL_PREFIX is added to the given key.

Parameters:
local_p -
key_p -
label_p -
Throws:
OwDebugModeException
Since:
3.1.0.5


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.