org.viewaframework.model
Interface ViewModel

All Known Implementing Classes:
AbstractViewModel, DefaultViewModel

public interface ViewModel

A placeholder for view models.

Since:
1.0
Author:
Mario Garcia

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)
           
 

Method Detail

addModelConverter

void addModelConverter(String property,
                       ViewModelConverter<?,?> converter)
Parameters:
property -
converter -

addModelStrategy

void addModelStrategy(String property,
                      ViewModelStrategy strategy)
Parameters:
property -
strategy -

addModelStrategy

void addModelStrategy(ViewModelStrategy strategy)
Parameters:
strategy -

getModelClass

Class<?> getModelClass()
Returns:

getModelConverterMap

Map<String,ViewModelConverter<?,?>> getModelConverterMap()
Returns:

getModelStrategyMap

Map<String,ViewModelStrategy> getModelStrategyMap()
Returns:

getModelStrategy

ViewModelStrategy getModelStrategy()
Returns:

getModelStrategy

ViewModelStrategy getModelStrategy(String property)
Parameters:
property -
Returns:

setModelClass

void setModelClass(Class<?> classType)
Parameters:
classType -


Copyright © 2010. All Rights Reserved.