The NumberElement class. More...
Public Member Functions | |
NUMBER_DISPLAY_TYPE | getNumberDisplayType () |
Get number display Get number display type. This determines how a number is displayed in Synalyze It! and can be one of. | |
NUMBER_TYPE | getNumberType () |
Get number type. Get number type of number element. This can be one of. | |
ENDIAN_TYPE | getEndianness () |
Get endianness Get endianness of number element. | |
BOOL | isSigned () |
Is number element of type signed? Query if the number element parses a signed or an unsigned value. | |
![]() | |
Element | Element (ELEMENT_TYPE type, String name, BOOL setDefaults) |
Constructor. Create object of type Element. | |
String | getName () |
Get name. Get name of element. | |
setName (String name) | |
Set name. Set name of element. | |
String | getDescription () |
Get description. Get description of element. | |
setDescription (String name) | |
Set description. Set description of element. | |
String | getEnclosingStructure () |
Get enclosing structure. Get the enclosing structure of the element. | |
String | getLength () |
Get length. Get length of element. For binary or string elements a length of zero means to fill the enclosing structure. Be aware that lengths can be fractions of bytes so call additionally getLengthUnit() | |
LENGTH_UNIT | getLengthUnit () |
Get length unit. Get length unit of element in bits. Valid values are. | |
setLength (String length, LENGTH_UNIT lengthUnit) | |
Set length. Set length of element. For binary or string elements a length of zero means to fill the enclosing structure. The length can contain variables and expressions. For number and binary elements you can specify a length unit . | |
ELEMENT_TYPE | getType () |
Get type. Get type of element. This can be one of. | |
BOOL | mustMatch () |
Get "must match" flag. Get if this element has to match while parsing a file. For this check the min/max values are checked and if one of the fixed values matches (if at least one is defined) | |
setMustMatch (BOOL mustMatch) | |
Set "must match" flag. Set if this element has to match while parsing a file. For this check the min/max values are checked and if one of the fixed values matches (if at least one is defined) | |
Value | getMinValue () |
Get minimum value. Get minimum value of element. This is only valid for numbers. This value will be checked if the "must match" flag is set. | |
Element | getParent () |
Get parent. Get parent of element. There is only a parent element if the enclosing structure is inherited from another structure. | |
The NumberElement class.
A number element object represents one number item in a structure.
ENDIAN_TYPE getEndianness | ( | ) |
NUMBER_DISPLAY_TYPE getNumberDisplayType | ( | ) |
Get number display Get number display type. This determines how a number is displayed in Synalyze It! and can be one of.
NUMBER_TYPE getNumberType | ( | ) |
Get number type. Get number type of number element. This can be one of.
BOOL isSigned | ( | ) |
Is number element of type signed? Query if the number element parses a signed or an unsigned value.