JTools

org.jtools.props
Class PropertyUtils

java.lang.Object
  extended by org.jtools.props.PropertyUtils

public class PropertyUtils
extends Object


Constructor Summary
PropertyUtils()
           
 
Method Summary
static boolean getBoolean(Properties props, String key)
           
static boolean getBoolean(Properties props, String key, boolean defaultValue)
           
static boolean getBoolean(PropertySupport props, String key)
           
static boolean getBoolean(PropertySupport props, String key, boolean defaultValue)
           
static Boolean getBooleanObj(Properties props, String key)
           
static Boolean getBooleanObj(Properties props, String key, Boolean defaultValue)
           
static Boolean getBooleanObj(PropertySupport props, String key)
           
static Boolean getBooleanObj(PropertySupport props, String key, Boolean defaultValue)
           
static double getDouble(Properties props, String key)
           
static double getDouble(Properties props, String key, double defaultValue)
           
static double getDouble(PropertySupport props, String key)
           
static double getDouble(PropertySupport props, String key, double defaultValue)
           
static Double getDoubleObj(Properties props, String key)
           
static Double getDoubleObj(Properties props, String key, Double defaultValue)
           
static Double getDoubleObj(PropertySupport props, String key)
           
static Double getDoubleObj(PropertySupport props, String key, Double defaultValue)
           
static int getInt(Properties props, String key)
           
static int getInt(Properties props, String key, int defaultValue)
           
static int getInt(PropertySupport props, String key)
           
static int getInt(PropertySupport props, String key, int defaultValue)
           
static Integer getInteger(Properties props, String key)
           
static Integer getInteger(Properties props, String key, Integer defaultValue)
           
static Integer getInteger(PropertySupport props, String key)
           
static Integer getInteger(PropertySupport props, String key, Integer defaultValue)
           
static long getLong(Properties props, String key)
           
static long getLong(Properties props, String key, long defaultValue)
           
static long getLong(PropertySupport props, String key)
           
static long getLong(PropertySupport props, String key, long defaultValue)
           
static Long getLongObj(Properties props, String key)
           
static Long getLongObj(Properties props, String key, Long defaultValue)
           
static Long getLongObj(PropertySupport props, String key)
           
static Long getLongObj(PropertySupport props, String key, Long defaultValue)
           
static String getString(Properties props, String key)
           
static String getString(Properties props, String key, String defaultValue)
           
static String getString(PropertySupport props, String key)
           
static String getString(PropertySupport props, String key, String defaultValue)
           
static List<String> getText(Properties props, String key)
           
static List<String> getText(Properties props, String key, String Default)
           
static List<String> getText(Properties props, String key, String Default, String crlf)
           
static List<String> getText(PropertySupport props, String key)
           
static List<String> getText(PropertySupport props, String key, String Default)
           
static List<String> getText(PropertySupport props, String key, String Default, String crlf)
           
static Object put(Properties props, String key, String[] txt)
           
static Object put(Properties props, String key, String[] txt, String crlf)
           
static Object put(PropertySupport props, String key, String[] txt)
           
static Object put(PropertySupport props, String key, String[] txt, String crlf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtils

public PropertyUtils()
Method Detail

getString

public static String getString(Properties props,
                               String key)

getString

public static String getString(Properties props,
                               String key,
                               String defaultValue)

getString

public static String getString(PropertySupport props,
                               String key)

getString

public static String getString(PropertySupport props,
                               String key,
                               String defaultValue)

getBoolean

public static boolean getBoolean(Properties props,
                                 String key)

getBoolean

public static boolean getBoolean(Properties props,
                                 String key,
                                 boolean defaultValue)

getBooleanObj

public static Boolean getBooleanObj(Properties props,
                                    String key)

getBooleanObj

public static Boolean getBooleanObj(Properties props,
                                    String key,
                                    Boolean defaultValue)

getDouble

public static double getDouble(Properties props,
                               String key)

getDouble

public static double getDouble(Properties props,
                               String key,
                               double defaultValue)

getDoubleObj

public static Double getDoubleObj(Properties props,
                                  String key)

getDoubleObj

public static Double getDoubleObj(Properties props,
                                  String key,
                                  Double defaultValue)

getInt

public static int getInt(Properties props,
                         String key)

getInt

public static int getInt(Properties props,
                         String key,
                         int defaultValue)

getInteger

public static Integer getInteger(Properties props,
                                 String key)

getInteger

public static Integer getInteger(Properties props,
                                 String key,
                                 Integer defaultValue)

getLong

public static long getLong(Properties props,
                           String key)

getLong

public static long getLong(Properties props,
                           String key,
                           long defaultValue)

getLongObj

public static Long getLongObj(Properties props,
                              String key)

getLongObj

public static Long getLongObj(Properties props,
                              String key,
                              Long defaultValue)

getText

public static List<String> getText(Properties props,
                                   String key)

getText

public static List<String> getText(Properties props,
                                   String key,
                                   String Default)

getText

public static List<String> getText(Properties props,
                                   String key,
                                   String Default,
                                   String crlf)

put

public static Object put(Properties props,
                         String key,
                         String[] txt)

put

public static Object put(Properties props,
                         String key,
                         String[] txt,
                         String crlf)

getBoolean

public static boolean getBoolean(PropertySupport props,
                                 String key)

getBoolean

public static boolean getBoolean(PropertySupport props,
                                 String key,
                                 boolean defaultValue)

getBooleanObj

public static Boolean getBooleanObj(PropertySupport props,
                                    String key)

getBooleanObj

public static Boolean getBooleanObj(PropertySupport props,
                                    String key,
                                    Boolean defaultValue)

getDouble

public static double getDouble(PropertySupport props,
                               String key)

getDouble

public static double getDouble(PropertySupport props,
                               String key,
                               double defaultValue)

getDoubleObj

public static Double getDoubleObj(PropertySupport props,
                                  String key)

getDoubleObj

public static Double getDoubleObj(PropertySupport props,
                                  String key,
                                  Double defaultValue)

getInt

public static int getInt(PropertySupport props,
                         String key)

getInt

public static int getInt(PropertySupport props,
                         String key,
                         int defaultValue)

getInteger

public static Integer getInteger(PropertySupport props,
                                 String key)

getInteger

public static Integer getInteger(PropertySupport props,
                                 String key,
                                 Integer defaultValue)

getLong

public static long getLong(PropertySupport props,
                           String key)

getLong

public static long getLong(PropertySupport props,
                           String key,
                           long defaultValue)

getLongObj

public static Long getLongObj(PropertySupport props,
                              String key)

getLongObj

public static Long getLongObj(PropertySupport props,
                              String key,
                              Long defaultValue)

getText

public static List<String> getText(PropertySupport props,
                                   String key)

getText

public static List<String> getText(PropertySupport props,
                                   String key,
                                   String Default)

getText

public static List<String> getText(PropertySupport props,
                                   String key,
                                   String Default,
                                   String crlf)

put

public static Object put(PropertySupport props,
                         String key,
                         String[] txt)

put

public static Object put(PropertySupport props,
                         String key,
                         String[] txt,
                         String crlf)

JTools

© 2000-2006, JTools.org.