Interface ComplexValue<S extends ComplexValue<S>>
- Type Parameters:
S- The type of the complex value (for fluent API)
- All Known Implementing Classes:
ComplexValueImpl,Entity,MapValue,TimeInterval,TimeValue,UnitOfMeasurement
public interface ComplexValue<S extends ComplexValue<S>>
Interface that values of complex properties should implement to make it
easier to access sub-properties.
-
Method Summary
Modifier and TypeMethodDescription<P> PgetProperty(Property<P> property) Get the value of the given property.getProperty(String name) Get the custom property with the given name.<P> SsetProperty(Property<P> property, P value) Set the given property to the given value.setProperty(String name, Object value) Set the custom property with the given name to the given value.
-
Method Details
-
getProperty
Get the value of the given property.- Type Parameters:
P- The type of the property and value.- Parameters:
property- The property to get the value of.- Returns:
- the value of the requested property.
-
setProperty
Set the given property to the given value.- Type Parameters:
P- The type of the property.- Parameters:
property- The property to set.value- The value to set the property to.- Returns:
- this.
-
getProperty
Get the custom property with the given name. Only valid for ComplexTypes that are classed as openType, returns null for non-openTypes.- Parameters:
name- The name of the custom property to fetch.- Returns:
- The value of the custom property.
-
setProperty
Set the custom property with the given name to the given value. Only valid for ComplexTypes that are classed as openType.- Parameters:
name- The name of the custom property to set.value- The value of the custom property to set.- Returns:
- this.
-