Package com.bc.ceres.binding
Class DefaultPropertySetDescriptor
- java.lang.Object
-
- com.bc.ceres.binding.DefaultPropertySetDescriptor
-
- All Implemented Interfaces:
PropertySetDescriptor
public class DefaultPropertySetDescriptor extends Object implements PropertySetDescriptor
The default implementation of a property set descriptor.- Since:
- 0.14
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertySetDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyDescriptor(PropertyDescriptor propertyDescriptor)static PropertySetDescriptorcreateFromClass(Class<?> valueType, PropertyDescriptorFactory propertyDescriptorFactory)PropertyDescriptorgetPropertyDescriptor(String propertyName)Gets a property descriptor for the given property name.String[]getPropertyNames()Gets the names of all properties in the set.
-
-
-
Method Detail
-
createFromClass
public static PropertySetDescriptor createFromClass(Class<?> valueType, PropertyDescriptorFactory propertyDescriptorFactory)
-
getPropertyNames
public String[] 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
public PropertyDescriptor getPropertyDescriptor(String propertyName)
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
public void addPropertyDescriptor(PropertyDescriptor propertyDescriptor)
-
-