Package org.apache.tapestry5.beanmodel
Class BeanModelUtils
java.lang.Object
org.apache.tapestry5.beanmodel.BeanModelUtils
Utilities used in a few places to modify an existing
BeanModel
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Adds empty properties to the bean model.static void
Removes properties from the bean model.static void
Selects a subset of the properties to keep, and reorders them.static void
modify
(BeanModel model, String addPropertyNames, String includePropertyNames, String excludePropertyNames, String reorderPropertyNames) Performs standard set of modifications to aBeanModel
.static void
Reorders properties within the bean model.static String[]
Don't use this method, which is only public for testing purposes.
-
Constructor Details
-
BeanModelUtils
public BeanModelUtils()
-
-
Method Details
-
modify
public static void modify(BeanModel model, String addPropertyNames, String includePropertyNames, String excludePropertyNames, String reorderPropertyNames) Performs standard set of modifications to aBeanModel
. First new properties may be added, then properties removed, then properties reordered.- Parameters:
model
- to modifiyaddPropertyNames
- comma seperated list of property names to add, or nullincludePropertyNames
- comma seperated list of property names to includeexcludePropertyNames
- comma seperated list of property names to exclude, or nullreorderPropertyNames
- comma seperated list of property names to reorder, or null
-
add
Adds empty properties to the bean model. New properties are added with a nullPropertyConduit
. `- Parameters:
model
- to be modifiedpropertyNames
- comma-separated list of property names- See Also:
-
exclude
Removes properties from the bean model.- Parameters:
model
-propertyNames
- comma-separated list of property names- See Also:
-
include
Selects a subset of the properties to keep, and reorders them. -
reorder
Reorders properties within the bean model.- Parameters:
model
-propertyNames
- comma-separated list of property names- See Also:
-
split
Don't use this method, which is only public for testing purposes.- Parameters:
propertyNames
-- Returns:
- a String array
-