Static Public Member Functions | |
static Field[] | ToFields (Map map, Fdt fdt, boolean ign) |
static Map | ToMap (Field[] flds, Fdt fdt, Map tgt) |
Various utilities.
Build field array from map. Map keys must be valid field description names (if fdt is given) or objects whose string representation build tag numbers.
ign | if false, method will return null on an occurence of a map entry that cannot be transformed in a field |
Fill tgt with field tag-val-entries.
If fdt is given, only fields having a field decription are put in tgt with string keys. If fdt is null, entry keys are set as integers.
If tgt is null, a new HashMap will be allocated.