Package com.bc.ceres.binding
Class Property
java.lang.Object
com.bc.ceres.binding.Property
A property is composed of a
PropertyDescriptor
(static type description) and
an PropertyAccessor
(dynamic value assignment).
The Property
interface is a realisation of the Value Object design pattern.
Most of the time, properties are used as part of a PropertyContainer
.- Since:
- 0.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static Property
static <T> Property
static Property
static Property
createForField
(Object object, String name) static Property
createForField
(Object object, String name, Object value) static Property
static Property
getName()
Class
<?> getType()
<T> T
getValue()
void
void
setContainer
(PropertyContainer container) void
void
setValueFromText
(String text) toString()
void
-
Constructor Details
-
Property
-
-
Method Details
-
create
-
create
-
create
-
createForField
-
createForField
-
createForMapEntry
-
createForMapEntry
-
getDescriptor
-
getContainer
-
setContainer
-
getValidator
-
getValueAsText
-
setValueFromText
- Throws:
ValidationException
-
getName
-
getType
-
getValue
public <T> T getValue() -
setValue
- Throws:
ValidationException
-
validate
- Throws:
ValidationException
-
addPropertyChangeListener
-
removePropertyChangeListener
-
toString
-