hoplugins.commons.utils
Class PluginProperty

java.lang.Object
  extended byhoplugins.commons.utils.PluginProperty

public final class PluginProperty
extends java.lang.Object

Property Manager class for HO Plugins

Author:
Massimiliano Amato

Method Summary
static java.util.Locale getLocale()
          Convert HT language ID to Java locale
static java.lang.String getString(java.lang.String key)
          Returns the property value
static void loadPluginProperties(java.lang.String plugin)
          Loads the own property file of the given plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocale

public static java.util.Locale getLocale()
Convert HT language ID to Java locale

Returns:
Locale

getString

public static java.lang.String getString(java.lang.String key)
Returns the property value

Parameters:
key - property key
Returns:
the property value, or the key itself if not found

loadPluginProperties

public static void loadPluginProperties(java.lang.String plugin)
Loads the own property file of the given plugin.

Parameters:
plugin - The package name of the plugin.


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.