public class MapDefaultProvider extends Object implements DefaultProvider
Constructor and Description |
---|
MapDefaultProvider() |
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.
|
public String defaultFor(Class<? extends Object> type, String property)
DefaultProvider
defaultFor
in interface DefaultProvider
type
- The type for which we want the default.property
- The property for which we want the default.public void addDefault(Class<? extends Object> type, String property, String defaultValue)
DefaultProvider
addDefault
in interface DefaultProvider
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.