Class ArbitraryPropertySupport
- All Implemented Interfaces:
BeanInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIndexedProperty(String key, int index) Get the value of an element in an indexed property.getProperty(String key) Get the value of a property.List all property names or keys.booleanhasIndexedProperty(String key) Test that a property exists and is indexed.booleanhasProperty(String key) Test that a property exists.voidsetIndexedProperty(String key, int index, Object value) Set the value of an element in an indexed property.voidsetProperty(String key, Object value) Set the value of a property.
-
Constructor Details
-
ArbitraryPropertySupport
-
-
Method Details
-
setIndexedProperty
Set the value of an element in an indexed property.NOTE Implementing methods must not call
Bean.setIndexedProperty(), as doing so will cause a stack overflow. Implementing methods may callBeans.setIntrospectedIndexedProperty()instead.- Specified by:
setIndexedPropertyin interfaceBeanInterface- Parameters:
key- name of the propertyindex- index of the property element to changevalue- the value to set the property to
-
getIndexedProperty
Get the value of an element in an indexed property.NOTE Implementing methods must not call
Bean.getIndexedProperty(), as doing so will cause a stack overflow. Implementing methods may callBeans.getIntrospectedIndexedProperty()instead.- Specified by:
getIndexedPropertyin interfaceBeanInterface- Parameters:
key- name of the propertyindex- index of the property element to change- Returns:
- value of the property or null
-
setProperty
Set the value of a property.NOTE Implementing methods must not call
Bean.setProperty(), as doing so will cause a stack overflow. Implementing methods may callBeans.setIntrospectedProperty()instead.- Specified by:
setPropertyin interfaceBeanInterface- Parameters:
key- name of the propertyvalue- the value to set the property to
-
getProperty
Get the value of a property.NOTE Implementing methods must not call
Bean.getProperty(), as doing so will cause a stack overflow. Implementing methods may callBeans.getIntrospectedProperty()instead.- Specified by:
getPropertyin interfaceBeanInterface- Parameters:
key- name of the property- Returns:
- The value of the property or null
-
hasProperty
Test that a property exists.NOTE Implementing method must not call
Bean.hasProperty(), as doing so will cause a stack overflow. Implementing methods may callBeans.hasIntrospectedProperty()instead.- Specified by:
hasPropertyin interfaceBeanInterface- Parameters:
key- name of the property- Returns:
- true is property key exists
-
hasIndexedProperty
Test that a property exists and is indexed.NOTE Implementing method must not call
Bean.hasIndexedProperty(), as doing so will cause a stack overflow. Implementing methods may callBeans.hasIntrospectedIndexedProperty()instead.- Specified by:
hasIndexedPropertyin interfaceBeanInterface- Parameters:
key- name of the property- Returns:
- true is property key exists and is indexed
-
getPropertyNames
List all property names or keys.NOTE Implementing method must not call
Bean.getPropertyNames(), as doing so will cause a stack overflow. Implementing methods may callBeans.getIntrospectedPropertyNames()instead.NOTE Implementations of this method should not return null.
- Specified by:
getPropertyNamesin interfaceBeanInterface- Returns:
- property names or an empty Set.
-