org.tynamo.util
Class BeanModelUtils
java.lang.Object
org.tynamo.util.BeanModelUtils
public final class BeanModelUtils
- extends Object
Utilities used to modify a BeanModel.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanModelUtils
public BeanModelUtils()
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 modifiyclassDescriptor - 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 modifiyclassDescriptor - key - to choose which configuration set to apply
join
public static String join(String firstList,
String optionalSecondList)
Copyright © 2004-2012. All Rights Reserved.