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 TypeMethodDescriptionvoidstatic Propertystatic <T> Propertystatic Propertystatic PropertycreateForField(Object object, String name) static PropertycreateForField(Object object, String name, Object value) static Propertystatic PropertygetName()Class<?> getType()<T> TgetValue()voidvoidsetContainer(PropertyContainer container) voidvoidsetValueFromText(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
-