|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.freehep.util.template.PropertiesValueProvider
A value provider that returns values based on a properties object.
Example of use:
Hello {v:user.name}
Constructor Summary | |
PropertiesValueProvider()
Builds a PropertiesValueProvider which takes its values from the system properties. |
|
PropertiesValueProvider(Properties props)
Builds a PropertiesValueProvider which takes its values from the specified Properties object. |
Method Summary | |
String |
getValue(String name)
Get a single value |
List |
getValues(String name)
Get a list of value providers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertiesValueProvider()
System.getProperties()
public PropertiesValueProvider(Properties props)
props
- The properties to use.Method Detail |
public String getValue(String name)
ValueProvider
getValue
in interface ValueProvider
name
- The name whose value is to be returned
null
if undefined.public List getValues(String name)
ValueProvider
getValues
in interface ValueProvider
name
- The template name of the list to be returned.
null
if no template is defined.
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |