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 void
addPropertyDescriptor(PropertyDescriptor propertyDescriptor)
static PropertySetDescriptor
createFromClass(Class<?> valueType, PropertyDescriptorFactory propertyDescriptorFactory)
PropertyDescriptor
getPropertyDescriptor(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: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
public PropertyDescriptor getPropertyDescriptor(String propertyName)
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
public void addPropertyDescriptor(PropertyDescriptor propertyDescriptor)
-
-