Package com.bc.ceres.binding
Class DefaultPropertySetDescriptor
java.lang.Object
com.bc.ceres.binding.DefaultPropertySetDescriptor
- All Implemented Interfaces:
PropertySetDescriptor
The default implementation of a property set descriptor.
- Since:
- 0.14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyDescriptor
(PropertyDescriptor propertyDescriptor) static PropertySetDescriptor
createFromClass
(Class<?> valueType, PropertyDescriptorFactory propertyDescriptorFactory) getPropertyDescriptor
(String propertyName) Gets a property descriptor for the given property name.String[]
Gets the names of all properties in the set.
-
Constructor Details
-
DefaultPropertySetDescriptor
public DefaultPropertySetDescriptor()
-
-
Method Details
-
createFromClass
public static PropertySetDescriptor createFromClass(Class<?> valueType, PropertyDescriptorFactory propertyDescriptorFactory) -
getPropertyNames
Description copied from interface:PropertySetDescriptor
Gets the names of all properties in the set.- Specified by:
getPropertyNames
in interfacePropertySetDescriptor
- Returns:
- The array of names of all properties in the set, or an empty array if the set is empty.
-
getPropertyDescriptor
Description copied from interface:PropertySetDescriptor
Gets a property descriptor for the given property name.- Specified by:
getPropertyDescriptor
in interfacePropertySetDescriptor
- Parameters:
propertyName
- The property name.- Returns:
- A property descriptor, or
null
if no such exists.
-
addPropertyDescriptor
-