Package org.exoplatform.forum.common
Class InitParamsValue
java.lang.Object
org.exoplatform.forum.common.InitParamsValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBoolean(org.exoplatform.container.xml.InitParams params, String key) Gets the Boolean value of InitParams by input keystatic booleangetBoolean(org.exoplatform.container.xml.InitParams params, String key, boolean defaultValue) Gets the Boolean value of InitParams by input keystatic doubleGets the Double value of InitParams by input keystatic intgetInteger(org.exoplatform.container.xml.InitParams params, String key, int defaultValue) Gets the Integer value of InitParams by input keystatic longGets the Long value of InitParams by input keystatic StringGets the String value of InitParams by input key
-
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 InitParamskey- The key to get valuedefaultValue- 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 InitParamskey- The key to get valuedefaultValue- 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 InitParamskey- The key to get valuedefaultValue- 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 InitParamskey- The key to get valuedefaultValue- The default value- Returns:
- Integer value
-
getBoolean
Gets the Boolean value of InitParams by input key- Parameters:
params- The InitParamskey- 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 InitParamskey- The key to get value- Returns:
- Boolean value
-