public interface PropertyMissing
isOn and maxConsumption,
but if my device is a door then my dynamic fields would be isOpen and isLockable.
propertyMissing(String) which is invoked by the system
whenever a non-declared field is being accessed via the groovy scripts for such an object.
The propertyMissing(String) then must return the respective dynamic field value.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
propertyMissing(java.lang.String propertyName)
Invoked by the system whenever a non-declared field is being accessed via the groovy scripts for this object.
|
java.lang.Object propertyMissing(java.lang.String propertyName)
throws java.lang.Exception
propertyName argument and return
the respective field value.propertyName - name of the dynamic field.java.lang.Exception - thrown when whatever error appears in recognizing the field or detecting its current value.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.