public class AqdefHierarchy extends Object
K51xx keysK2030/K2031
keysThe simplified characteristics hierarchy
The simplified characteristics hierarchy from K2030/K2031 keys is
internally transformed to the K51xx structure. In other words, there
is no way to get information about simple hierarchy back from the hierarchy
model.
Note that hierarchy model created from a simplified characteristics hierarchy
needs to be normalized, because
there could be characteristics without binding to a root part node, or there
could be no root part node at all.
normalize(AqdefObjectModel)| Modifier and Type | Class and Description |
|---|---|
static class |
AqdefHierarchy.HierarchyEntry |
| Constructor and Description |
|---|
AqdefHierarchy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
forEachNodeBinding(Consumer<AqdefHierarchy.HierarchyEntry> action) |
void |
forEachNodeDefinition(Consumer<AqdefHierarchy.HierarchyEntry> action) |
Optional<Object> |
getParentIndex(CharacteristicIndex characteristicIndex)
Find index of parent characteristic or group of given characteristic.
|
Optional<Object> |
getParentIndex(GroupIndex groupIndex)
Find index of parent characteristic or group of given group.
|
boolean |
hasChildren(CharacteristicIndex characteristicIndex) |
int |
hashCode() |
boolean |
isEmpty() |
AqdefHierarchy |
normalize(AqdefObjectModel aqdefObjectModel)
Get the normalized hierarchy.
|
void |
putEntry(AqdefHierarchy.HierarchyEntry entry) |
void |
putEntry(KKey kKey,
Integer index,
Object value) |
public void putEntry(AqdefHierarchy.HierarchyEntry entry)
public AqdefHierarchy normalize(AqdefObjectModel aqdefObjectModel)
aqdefObjectModel - an aqdef model containing this hierarchy, must not be nullpublic void forEachNodeDefinition(Consumer<AqdefHierarchy.HierarchyEntry> action)
public void forEachNodeBinding(Consumer<AqdefHierarchy.HierarchyEntry> action)
public boolean isEmpty()
public boolean hasChildren(CharacteristicIndex characteristicIndex)
public Optional<Object> getParentIndex(CharacteristicIndex characteristicIndex)
characteristicIndex - CharacteristicIndex or GroupIndex of parent, or empty optional if given
characteristic do not have a parentpublic Optional<Object> getParentIndex(GroupIndex groupIndex)
groupIndex - CharacteristicIndex or GroupIndex
of parent, or empty optional if given group do not have a parentCopyright © 2017. All rights reserved.