Class MissingField
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.booleans.BooleanExpression,nl.basjes.modbus.schema.expression.numbers.NumericalExpression,nl.basjes.modbus.schema.expression.strings.StringExpression
public final class MissingField implements StringExpression, NumericalExpression, BooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisImmutableprivate final List<Expression.Problem>problemsprivate final ReturnTypereturnTypeprivate final List<Expression>subExpressionsprivate final List<Address>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate final List<String>requiredFields
-
Constructor Summary
Constructors Constructor Description MissingField(String fieldName)
-
Method Summary
Modifier and Type Method Description BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)List<Expression.Problem>getProblems()ReturnTypegetReturnType()StringtoString()VoidgetValue(SchemaDevice schemaDevice)VoidgetBoolean(SchemaDevice schemaDevice)VoidgetValueAsDouble(SchemaDevice schemaDevice)VoidgetValueAsLong(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getModbusValues, getRequiredAddresses, getRequiredFields, getRequiredMutableAddresses, getSubExpressions, initialize, toString -
Methods inherited from class nl.basjes.modbus.schema.expression.numbers.NumericalExpression
getGuarantee -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MissingField
MissingField(String fieldName)
-
-
Method Detail
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getProblems
List<Expression.Problem> getProblems()
-
getReturnType
ReturnType getReturnType()
-
getValue
Void getValue(SchemaDevice schemaDevice)
- Returns:
The String value or null if it was not implemented
-
getBoolean
Void getBoolean(SchemaDevice schemaDevice)
- Returns:
The boolean value or null in case of problems (like this is not a discretes address)
-
getValueAsDouble
Void getValueAsDouble(SchemaDevice schemaDevice)
- Returns:
The Double value or null if it was not implemented
-
getValueAsLong
Void getValueAsLong(SchemaDevice schemaDevice)
- Returns:
The Long value or null if it was not implemented
-
-
-
-