public class PropertiesUtil extends Object
Constructor and Description |
---|
PropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getProperties(Class<?> clazz,
String property,
String key)
Returns a map with all key value pairs contained in @Properties.
|
static Map<String,String> |
getProperties(Object object,
String property,
String key)
Returns a map with all key value pairs contained in @Properties.
|
static String |
getValue(Class<?> clazz,
String property,
String key)
Returns the value of @Property, from the property in clazz containing a @Property
with the given key.
|
static String |
getValue(Object object,
String property,
String key)
Returns the value of @Property, from the property in object containing a @Property
with the given key.
|
static boolean |
hasKey(Class<?> clazz,
String property,
String key)
Returns true, if the property in clazz contains a @Property with the
given key.
|
static boolean |
hasKey(Object object,
String property,
String key)
Returns true, if the property in object contains a @Property with the
given key.
|
public PropertiesUtil()
public static boolean hasKey(Object object, String property, String key)
object
- the objectproperty
- the propertykey
- the keypublic static boolean hasKey(Class<?> clazz, String property, String key)
clazz
- the clazzproperty
- the propertykey
- the keypublic static String getValue(Object object, String property, String key)
object
- the objectproperty
- the propertykey
- the keypublic static String getValue(Class<?> clazz, String property, String key)
clazz
- the clazzproperty
- the propertykey
- the keypublic static Map<String,String> getProperties(Object object, String property, String key)
object
- the objectproperty
- the propertykey
- the keyCopyright © 2013-2016 Loetz GmbH&Co.KG - Heidelberg - Germany, Eclipse OSBP Project, OS.bee