Package org.apache.tapestry5.beanmodel
Class BeanModelUtils
- java.lang.Object
- 
- org.apache.tapestry5.beanmodel.BeanModelUtils
 
- 
 public final class BeanModelUtils extends java.lang.Object Utilities used in a few places to modify an existingBeanModel.
- 
- 
Constructor SummaryConstructors Constructor Description BeanModelUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidadd(BeanModel model, java.lang.String propertyNames)Adds empty properties to the bean model.static voidexclude(BeanModel model, java.lang.String propertyNames)Removes properties from the bean model.static voidinclude(BeanModel model, java.lang.String propertyNames)Selects a subset of the properties to keep, and reorders them.static voidmodify(BeanModel model, java.lang.String addPropertyNames, java.lang.String includePropertyNames, java.lang.String excludePropertyNames, java.lang.String reorderPropertyNames)Performs standard set of modifications to aBeanModel.static voidreorder(BeanModel model, java.lang.String propertyNames)Reorders properties within the bean model.static java.lang.String[]split(java.lang.String propertyNames)Don't use this method, which is only public for testing purposes.
 
- 
- 
- 
Constructor Detail- 
BeanModelUtilspublic BeanModelUtils() 
 
- 
 - 
Method Detail- 
modifypublic static void modify(BeanModel model, java.lang.String addPropertyNames, java.lang.String includePropertyNames, java.lang.String excludePropertyNames, java.lang.String reorderPropertyNames) Performs standard set of modifications to aBeanModel. First new properties may be added, then properties removed, then properties reordered.- Parameters:
- model- to modifiy
- addPropertyNames- comma seperated list of property names to add, or null
- includePropertyNames- comma seperated list of property names to include
- excludePropertyNames- comma seperated list of property names to exclude, or null
- reorderPropertyNames- comma seperated list of property names to reorder, or null
 
 - 
addpublic static void add(BeanModel model, java.lang.String propertyNames) Adds empty properties to the bean model. New properties are added with a nullPropertyConduit. `- Parameters:
- model- to be modified
- propertyNames- comma-separated list of property names
- See Also:
- BeanModel.addEmpty(String)
 
 - 
excludepublic static void exclude(BeanModel model, java.lang.String propertyNames) Removes properties from the bean model.- Parameters:
- model-
- propertyNames- comma-separated list of property names
- See Also:
- BeanModel.exclude(String...)
 
 - 
includepublic static void include(BeanModel model, java.lang.String propertyNames) Selects a subset of the properties to keep, and reorders them.
 - 
reorderpublic static void reorder(BeanModel model, java.lang.String propertyNames) Reorders properties within the bean model.- Parameters:
- model-
- propertyNames- comma-separated list of property names
- See Also:
- BeanModel.reorder(String...)
 
 - 
splitpublic static java.lang.String[] split(java.lang.String propertyNames) Don't use this method, which is only public for testing purposes.- Parameters:
- propertyNames-
- Returns:
- a String array
 
 
- 
 
-