Interface PropertyProcessing
public interface PropertyProcessing
Aspect defining property processing objects.
- Since:
- 5.2.14
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Exception indicating that the value given is not valid for the targeted property.static class
Exception indicating that the requested propery is not available. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AspectType<PropertyProcessing>
Aspect defining property processing objects. -
Method Summary
Modifier and TypeMethodDescription@Nullable Object
getProperty
(String name) Get the value for the property having the givenname
.boolean
setProperty
(String name, Object value) Set the value for the property having the givenname
.
-
Field Details
-
TYPE
Aspect defining property processing objects.- Since:
- 5.2.14
-
-
Method Details
-
getProperty
@Nullable @Nullable Object getProperty(String name) throws PropertyProcessing.NoSuchPropertyException Get the value for the property having the givenname
.- Parameters:
name
- The property name.- Returns:
- The stored value.
- Throws:
PropertyProcessing.NoSuchPropertyException
- If there is no property with the givenname
.- Since:
- 5.2.14
-
setProperty
boolean setProperty(String name, Object value) throws PropertyProcessing.NoSuchPropertyException, PropertyProcessing.InvalidValueException Set the value for the property having the givenname
.- Parameters:
name
- The property name.value
- The value to be stored.- Returns:
true
, if the property was set.- Throws:
PropertyProcessing.NoSuchPropertyException
- If there is no property with the givenname
.PropertyProcessing.InvalidValueException
- If the value is inappropriate for the targeted property.- Since:
- 5.2.14
-