org.barracudamvc.contrib.dbroggisch.display
Class HashMapModel
java.lang.Object
org.barracudamvc.core.comp.AbstractTemplateModel
org.barracudamvc.contrib.dbroggisch.display.HashMapModel
- All Implemented Interfaces:
- LightweightTemplateModel, Contextual, Model, TemplateModel
public class HashMapModel
- extends AbstractTemplateModel
- implements LightweightTemplateModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected Map values
modelName
protected String modelName
HashMapModel
public HashMapModel()
HashMapModel
public HashMapModel(String name,
Map mp)
HashMapModel
public HashMapModel(String name)
HashMapModel
public HashMapModel(Map mp)
getName
public String getName()
- Specified by:
getName
in interface TemplateModel
getItem
public Object getItem(TemplateDirective td)
- Description copied from class:
AbstractTemplateModel
- get an item for a given template directive. Implement this
method if you want access to the full directive, not just the
String key. Note that if you implement this method, AND you
want to use the getItem(String key) method, then your implementation
of this method must be sure to call super.getItem() in order for
for the convenience method to get called.
- Specified by:
getItem
in interface TemplateModel
- Overrides:
getItem
in class AbstractTemplateModel
getItem
public Object getItem(String key)
- Description copied from class:
AbstractTemplateModel
- Convenience method to get an item based on the key name (extracted
from the TemplateDirective).
- Specified by:
getItem
in interface LightweightTemplateModel
- Overrides:
getItem
in class AbstractTemplateModel
setName
public void setName(String name)
setItem
public void setItem(String key,
Object value)
- Specified by:
setItem
in interface LightweightTemplateModel
getItems
public Map getItems()
setItems
public void setItems(Map v)
clear
public void clear()
keySet
public Set keySet()
- Specified by:
keySet
in interface LightweightTemplateModel
Copyright © 2006 BarracudaMVC.org All Rights Reserved.