Package org.stringtemplate.v4.misc
Class MapModelAdaptor
- java.lang.Object
-
- org.stringtemplate.v4.misc.MapModelAdaptor
-
- All Implemented Interfaces:
ModelAdaptor<Map<?,?>>
public class MapModelAdaptor extends Object implements ModelAdaptor<Map<?,?>>
-
-
Constructor Summary
Constructors Constructor Description MapModelAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getProperty(Interpreter interp, ST self, Map<?,?> model, Object property, String propertyName)
Lookup property name ino
and return its value.
-
-
-
Method Detail
-
getProperty
public Object getProperty(Interpreter interp, ST self, Map<?,?> model, Object property, String propertyName) throws STNoSuchPropertyException
Description copied from interface:ModelAdaptor
Lookup property name ino
and return its value.property
is normally aString
but doesn't have to be. E.g., ifo
isMap
,property
could be any key type. If we need to convert toString
, then it's done byST
and passed in here.- Specified by:
getProperty
in interfaceModelAdaptor<Map<?,?>>
- Throws:
STNoSuchPropertyException
-
-