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 TypeMethodDescriptionvoidaddPropertyDescriptor(PropertyDescriptor propertyDescriptor) static PropertySetDescriptorcreateFromClass(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:PropertySetDescriptorGets the names of all properties in the set.- Specified by:
getPropertyNamesin 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:PropertySetDescriptorGets a property descriptor for the given property name.- Specified by:
getPropertyDescriptorin interfacePropertySetDescriptor- Parameters:
propertyName- The property name.- Returns:
- A property descriptor, or
nullif no such exists.
-
addPropertyDescriptor
-