Class InitParamsValue

java.lang.Object
org.exoplatform.forum.common.InitParamsValue

public class InitParamsValue extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    getBoolean(org.exoplatform.container.xml.InitParams params, String key)
    Gets the Boolean value of InitParams by input key
    static boolean
    getBoolean(org.exoplatform.container.xml.InitParams params, String key, boolean defaultValue)
    Gets the Boolean value of InitParams by input key
    static double
    getDouble(org.exoplatform.container.xml.InitParams params, String key, double defaultValue)
    Gets the Double value of InitParams by input key
    static int
    getInteger(org.exoplatform.container.xml.InitParams params, String key, int defaultValue)
    Gets the Integer value of InitParams by input key
    static long
    getLong(org.exoplatform.container.xml.InitParams params, String key, long defaultValue)
    Gets the Long value of InitParams by input key
    static String
    getString(org.exoplatform.container.xml.InitParams params, String key, String defaultValue)
    Gets the String value of InitParams by input key

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InitParamsValue

      public InitParamsValue()
  • Method Details

    • getString

      public static String getString(org.exoplatform.container.xml.InitParams params, String key, String defaultValue)
      Gets the String value of InitParams by input key
      Parameters:
      params - The InitParams
      key - The key to get value
      defaultValue - The default value
      Returns:
      String value
    • getLong

      public static long getLong(org.exoplatform.container.xml.InitParams params, String key, long defaultValue)
      Gets the Long value of InitParams by input key
      Parameters:
      params - The InitParams
      key - The key to get value
      defaultValue - The default value
      Returns:
      Long value
    • getDouble

      public static double getDouble(org.exoplatform.container.xml.InitParams params, String key, double defaultValue)
      Gets the Double value of InitParams by input key
      Parameters:
      params - The InitParams
      key - The key to get value
      defaultValue - The default value
      Returns:
      Double value
    • getInteger

      public static int getInteger(org.exoplatform.container.xml.InitParams params, String key, int defaultValue)
      Gets the Integer value of InitParams by input key
      Parameters:
      params - The InitParams
      key - The key to get value
      defaultValue - The default value
      Returns:
      Integer value
    • getBoolean

      public static boolean getBoolean(org.exoplatform.container.xml.InitParams params, String key)
      Gets the Boolean value of InitParams by input key
      Parameters:
      params - The InitParams
      key - The key to get value
      Returns:
      Boolean value
    • getBoolean

      public static boolean getBoolean(org.exoplatform.container.xml.InitParams params, String key, boolean defaultValue)
      Gets the Boolean value of InitParams by input key
      Parameters:
      params - The InitParams
      key - The key to get value
      Returns:
      Boolean value