org.enhydra.barracuda.contrib.sam.models
Class ReflectionModel

java.lang.Object
  extended byorg.enhydra.barracuda.core.comp.AbstractTemplateModel
      extended byorg.enhydra.barracuda.contrib.sam.models.ReflectionModel
All Implemented Interfaces:
Contextual, Model, TemplateModel

public class ReflectionModel
extends AbstractTemplateModel


Field Summary
protected static org.apache.log4j.Logger logger
           
protected  String name
           
protected  Object obj
           
 
Fields inherited from class org.enhydra.barracuda.core.comp.AbstractTemplateModel
listeners, UNDEFINED, viewContext
 
Constructor Summary
ReflectionModel(String name)
           
ReflectionModel(String name, Object obj)
           
 
Method Summary
 Object getItem(String key)
          Convenience method to get an item based on the key name (extracted from the TemplateDirective).
 String getName()
           
 void setObject(Object obj)
           
 
Methods inherited from class org.enhydra.barracuda.core.comp.AbstractTemplateModel
addModelListener, fireModelChanged, getItem, getViewContext, processDirective, removeModelListener, setViewContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

name

protected String name

obj

protected Object obj
Constructor Detail

ReflectionModel

public ReflectionModel(String name)

ReflectionModel

public ReflectionModel(String name,
                       Object obj)
Method Detail

setObject

public void setObject(Object obj)

getName

public String getName()

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).

Overrides:
getItem in class AbstractTemplateModel


Copyright © 2003 BarracudaMVC.org All Rights Reserved.