public abstract class PropertyBase extends Object
| Constructor and Description |
|---|
PropertyBase() |
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
format(T value,
Class<T> type) |
static <T> String |
format(T value,
String formatterId) |
boolean |
getBool(String key,
boolean defaultValue) |
double |
getDouble(String key,
double defaultValue) |
float |
getFloat(String key,
float defaultValue) |
int |
getInt(String key,
int defaultValue) |
long |
getLong(String key,
long defaultValue) |
boolean |
getRequiredBool(String key) |
Date |
getRequiredDate(String key) |
Timestamp |
getRequiredDateTime24H(String key) |
double |
getRequiredDouble(String key) |
float |
getRequiredFloat(String key) |
int |
getRequiredInt(String key) |
long |
getRequiredLong(String key) |
String |
getRequiredString(String key) |
abstract String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
List<String> |
getStringList(String key) |
static <T> T |
parse(String value,
Class<T> targetType) |
static <T> T |
parse(String value,
String formatterId) |
public String getRequiredString(String key) throws FormatterException
FormatterExceptionpublic boolean getBool(String key, boolean defaultValue)
public boolean getRequiredBool(String key) throws FormatterException
FormatterExceptionpublic int getInt(String key, int defaultValue)
public int getRequiredInt(String key) throws FormatterException
FormatterExceptionpublic long getLong(String key, long defaultValue)
public long getRequiredLong(String key) throws FormatterException
FormatterExceptionpublic float getFloat(String key, float defaultValue)
public float getRequiredFloat(String key) throws FormatterException
FormatterExceptionpublic double getDouble(String key, double defaultValue)
public double getRequiredDouble(String key) throws FormatterException
FormatterExceptionpublic Date getRequiredDate(String key) throws FormatterException
FormatterExceptionpublic Timestamp getRequiredDateTime24H(String key) throws FormatterException
FormatterExceptionpublic static <T> T parse(String value, Class<T> targetType) throws FormatterException
FormatterExceptionpublic static <T> T parse(String value, String formatterId) throws FormatterException
FormatterExceptionpublic static <T> String format(T value, Class<T> type) throws FormatterException
FormatterExceptionpublic static <T> String format(T value, String formatterId) throws FormatterException
FormatterExceptionCopyright © 2017. All rights reserved.