public class ConfigParser extends Object
MyClass{{propertyOne=foo}{propertyTwo=bar}}
| Constructor and Description |
|---|
ConfigParser(String config)
Creates a new
ConfigParser with the supplied configuration
string. |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Returns the class name from the configuration.
|
Map<String,String> |
getProperties()
Returns the properties from the configuration.
|
Object |
initializeType()
Initialize an instance of the class type with the properties contained in
this config.
|
static boolean |
isConfig(String config)
Returns whether the supplied configuration data contains a config.
|
protected void |
setProperties(Class<?> c,
Object o)
Sets the properties on the supplied object.
|
public ConfigParser(String config)
ConfigParser with the supplied configuration
string.config - Stringpublic String getClassName()
String class namepublic Map<String,String> getProperties()
Map of property name to valuepublic static boolean isConfig(String config)
config - Stringbooleanpublic Object initializeType()
Object of the type the config parsedCopyright © 2014. All rights reserved.