|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.boylesoftware.cb2.util.TextUtils.MapValueGetter
Standard implementation of ValueGetter
interface, which
takes values for macros from a map object. The values in the map
are automatically converted to strings using toString
method.
Constructor Summary | |
TextUtils.MapValueGetter(java.util.Map values)
Constructs a getter instance. |
Method Summary | |
java.lang.String |
get(java.lang.String name)
Gets the specified macro's value from the map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextUtils.MapValueGetter(java.util.Map values)
values
- the map with macro values by macro names.Method Detail |
public java.lang.String get(java.lang.String name)
get
in interface TextUtils.ValueGetter
name
- the macro name.
null
if there is no
value associated with this name in the map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |