org.tynamo.util
Class BeanModelUtils

java.lang.Object
  extended by org.tynamo.util.BeanModelUtils

public final class BeanModelUtils
extends Object

Utilities used to modify a BeanModel.


Constructor Summary
BeanModelUtils()
           
 
Method Summary
static void applyDefaultExclusions(org.apache.tapestry5.beaneditor.BeanModel dataModel, TynamoClassDescriptor classDescriptor, String key)
          Removes from the bean model the Tynamo "recommended" list of properties to exclude.
static String join(String firstList, String optionalSecondList)
           
static void modify(org.apache.tapestry5.beaneditor.BeanModel dataModel, TynamoClassDescriptor classDescriptor, String key)
          Performs standard set of modifications to a BeanModel properties may be included, removed or reordered based on the contents of the BeanModelExtension and the value of context key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanModelUtils

public BeanModelUtils()
Method Detail

applyDefaultExclusions

public static void applyDefaultExclusions(org.apache.tapestry5.beaneditor.BeanModel dataModel,
                                          TynamoClassDescriptor classDescriptor,
                                          String key)
Removes from the bean model the Tynamo "recommended" list of properties to exclude. It excludes all nonVisual properties from the BeanModel for ALL context, and for the "list" context it also removes identifier and collection properties.

Parameters:
dataModel - to modifiy
classDescriptor -
key - to choose which configuration set to apply

modify

public static void modify(org.apache.tapestry5.beaneditor.BeanModel dataModel,
                          TynamoClassDescriptor classDescriptor,
                          String key)
Performs standard set of modifications to a BeanModel properties may be included, removed or reordered based on the contents of the BeanModelExtension and the value of context key

Parameters:
dataModel - to modifiy
classDescriptor -
key - to choose which configuration set to apply

join

public static String join(String firstList,
                          String optionalSecondList)


Copyright © 2004-2012. All Rights Reserved.