public interface DefaultProvider
Modifier and Type | Method and Description |
---|---|
void |
addDefault(Class<? extends Object> type,
String property,
String defaultValue)
Add default value for a given property and data type.
|
String |
defaultFor(Class<? extends Object> type,
String property)
Given the data type and the layout property for which we want the default
value, return the value, or null if none exists.
|
String defaultFor(Class<? extends Object> type, String property)
type
- The type for which we want the default.property
- The property for which we want the default.void addDefault(Class<? extends Object> type, String property, String defaultValue)
type
- The data type for which the default value is to be used.property
- The property for which the value is intended.defaultValue
- The default value to be used. Nulls are ignored.Copyright © 2014. All Rights Reserved.