Package nl.basjes.modbus.schema
Class SchemaField
-
- All Implemented Interfaces:
@Serializable() public final class SchemaField
-
-
Method Summary
Modifier and Type Method Description final StringgetId()The technical id of the field. final StringgetDescription()Human-readable description of the field. final BooleangetImmutable()If a field NEVER changes then this can be se to true. final BooleangetSystem()Some fields are system fields which means they should not be used by the application. final StringgetExpression()The expression that defines how this Field gets its value. final StringgetUnit()Human-readable unit of the field (like 'V' for Volt or '%' for percentage). StringtoString()-
-
Method Detail
-
getId
final String getId()
The technical id of the field. Must be usable as an identifier in 'all' common programming languages. So "CamelCase" (without spaces) is a good choice.
-
getDescription
final String getDescription()
Human-readable description of the field.
-
getImmutable
final Boolean getImmutable()
If a field NEVER changes then this can be se to true. This allows a library to only read this value the first time and on subsequent updates skip reading this value. An example of these are software version numbers and the scaling factor as used by SunSpec.
-
getSystem
final Boolean getSystem()
Some fields are system fields which means they should not be used by the application. An example of these are the scaling factor as used by SunSpec.
-
getExpression
final String getExpression()
The expression that defines how this Field gets its value.
-
getUnit
final String getUnit()
Human-readable unit of the field (like 'V' for Volt or '%' for percentage).
-
-
-
-