@Customizer(value=PropertyBagCustomizer.class) public interface PropertyBag
| Modifier and Type | Interface and Description |
|---|---|
static class |
PropertyBag.Duck |
| Modifier and Type | Method and Description |
|---|---|
Property |
addProperty(Property property) |
List<Property> |
getProperty()
Gets the value of the property property.
|
Property |
getProperty(String name) |
String |
getPropertyValue(String name)
Returns a property value if the bean has properties and one of its
properties name is equal to the one passed.
|
String |
getPropertyValue(String name,
String defaultValue)
Returns a property value if the bean has properties and one of its
properties name is equal to the one passed.
|
Property |
lookupProperty(String name) |
Property |
removeProperty(Property removeMe) |
Property |
removeProperty(String name) |
List<Property> getProperty()
set method for the property property.
For example, to add a new item, do as follows:
getProperty().add(newItem);
Objects of the following type(s) are allowed in the list
Property@Customize @DuckTyped Property getProperty(String name)
@Customize @DuckTyped String getPropertyValue(String name)
name - the property name requested@Customize @DuckTyped String getPropertyValue(String name, String defaultValue)
name - the property name requesteddefaultValue - is the default value to return in case the property
of that name does not exist in this bagCopyright © 2019. All rights reserved.