Creates a 64-bit hex string representation of the quantities according to a predefined list of quantities.
More...
|
BigInteger | createMaskFromIntegers (List< Integer > integers) |
| Creates the bit pattern.
|
|
String | getAttributeValue (Metadata metadata, String attrPath) |
| Returns the value for the specified path in the metadata.
|
|
void | parseFile (File file) |
|
boolean | isLeftShifting (Document doc) |
| Verifies if the shifting should be performed left to right or right to left.
|
|
Map< String, Integer > | parseMapping (Document doc) |
| Parses the quantities xml file.
|
|
Creates a 64-bit hex string representation of the quantities according to a predefined list of quantities.
- Author
- Anders Henja
◆ QuantityHexNameCreator() [1/4]
eu.baltrad.beast.rules.namer.QuantityHexNameCreator.QuantityHexNameCreator |
( |
| ) |
|
|
inline |
◆ QuantityHexNameCreator() [2/4]
eu.baltrad.beast.rules.namer.QuantityHexNameCreator.QuantityHexNameCreator |
( |
Map< String, Integer > | map | ) |
|
|
inline |
Constructor.
- Parameters
-
map | the mapping between quantity and bit position |
◆ QuantityHexNameCreator() [3/4]
eu.baltrad.beast.rules.namer.QuantityHexNameCreator.QuantityHexNameCreator |
( |
Map< String, Integer > | map, |
|
|
boolean | shiftLeft ) |
|
inline |
Constructor.
- Parameters
-
map | the mapping between quantity and bit position |
shiftLeft | if the bit pattern should be masked from left or right |
◆ QuantityHexNameCreator() [4/4]
eu.baltrad.beast.rules.namer.QuantityHexNameCreator.QuantityHexNameCreator |
( |
File | file | ) |
|
|
inline |
Constructor.
- Parameters
-
file | the mapping as a xml file |
◆ createMaskFromIntegers()
BigInteger eu.baltrad.beast.rules.namer.QuantityHexNameCreator.createMaskFromIntegers |
( |
List< Integer > | integers | ) |
|
|
inlineprotected |
Creates the bit pattern.
- Parameters
-
integers | a list of integer positions |
- Returns
- the created long value
◆ createName()
String eu.baltrad.beast.rules.namer.QuantityHexNameCreator.createName |
( |
String | tag, |
|
|
Metadata | metadata ) |
|
inline |
◆ getAttributeValue()
String eu.baltrad.beast.rules.namer.QuantityHexNameCreator.getAttributeValue |
( |
Metadata | metadata, |
|
|
String | attrPath ) |
|
inlineprotected |
Returns the value for the specified path in the metadata.
- Parameters
-
metadata | the metadata |
attrPath | the node path |
- Returns
- the string value if found, otherwise null
◆ isLeftShifting()
boolean eu.baltrad.beast.rules.namer.QuantityHexNameCreator.isLeftShifting |
( |
Document | doc | ) |
|
|
inlineprotected |
Verifies if the shifting should be performed left to right or right to left.
- Parameters
-
- Returns
- if shifting should be performed to left or right
◆ parseMapping()
Map< String, Integer > eu.baltrad.beast.rules.namer.QuantityHexNameCreator.parseMapping |
( |
Document | doc | ) |
|
|
inlineprotected |
Parses the quantities xml file.
- Parameters
-
- Returns
- a map
◆ supports()
boolean eu.baltrad.beast.rules.namer.QuantityHexNameCreator.supports |
( |
String | tag | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- src/eu/baltrad/beast/rules/namer/QuantityHexNameCreator.java