org.viewaframework.model
Class AbstractViewModel

java.lang.Object
  extended by org.viewaframework.model.AbstractViewModel
All Implemented Interfaces:
ViewModel
Direct Known Subclasses:
DefaultViewModel

public class AbstractViewModel
extends Object
implements ViewModel

Since:
1.0
Author:
Mario Garcia

Constructor Summary
AbstractViewModel()
           
 
Method Summary
 void addModelConverter(String property, ViewModelConverter<?,?> converter)
           
 void addModelStrategy(String property, ViewModelStrategy strategy)
           
 void addModelStrategy(ViewModelStrategy strategy)
           
 Class<?> getModelClass()
           
 Map<String,ViewModelConverter<?,?>> getModelConverterMap()
           
 ViewModelStrategy getModelStrategy()
           
 ViewModelStrategy getModelStrategy(String property)
           
 Map<String,ViewModelStrategy> getModelStrategyMap()
           
 void setModelClass(Class<?> classType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewModel

public AbstractViewModel()
Method Detail

addModelConverter

public void addModelConverter(String property,
                              ViewModelConverter<?,?> converter)
Specified by:
addModelConverter in interface ViewModel

addModelStrategy

public void addModelStrategy(String property,
                             ViewModelStrategy strategy)
Specified by:
addModelStrategy in interface ViewModel

addModelStrategy

public void addModelStrategy(ViewModelStrategy strategy)
Specified by:
addModelStrategy in interface ViewModel

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ViewModel
Returns:

getModelConverterMap

public Map<String,ViewModelConverter<?,?>> getModelConverterMap()
Specified by:
getModelConverterMap in interface ViewModel
Returns:

getModelStrategy

public ViewModelStrategy getModelStrategy()
Specified by:
getModelStrategy in interface ViewModel
Returns:

getModelStrategy

public ViewModelStrategy getModelStrategy(String property)
Specified by:
getModelStrategy in interface ViewModel
Returns:

getModelStrategyMap

public Map<String,ViewModelStrategy> getModelStrategyMap()
Specified by:
getModelStrategyMap in interface ViewModel
Returns:

setModelClass

public void setModelClass(Class<?> classType)
Specified by:
setModelClass in interface ViewModel


Copyright © 2010. All Rights Reserved.