Interface PropertyProviding<T>
- Type Parameters:
T
- Value type, same as inValueEngineer
public interface PropertyProviding<T>
Implementors provide values for named properties.
- Since:
- 5.0.101
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Exception to be thrown in case of an unknown property was requested. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ValueEngineerAspectType<PropertyProviding<?>>
Aspect forValueEngineer
s providing means to provide properties. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(T value, String name) Provide a value for the property having the given name.
-
Field Details
-
TYPE
Aspect forValueEngineer
s providing means to provide properties.- Since:
- 5.0.101
-
-
Method Details
-
getProperty
Provide a value for the property having the given name.- Parameters:
value
- The value to base the property determination on.name
- The name of the property.- Returns:
- The value associated with the requested property.
- Throws:
PropertyProviding.UnsupportedPropertyException
- If there is no such property.- Since:
- 5.0.101
-