/**
* Some of the properties of each node in the grouping can be refined with the "refine" statement.
*
- * @return Map, where key is schema path of refined node and value is refined node
+ * @return Map, where key is schema node identifier of refined node and value is refined node.
*/
@NonNull Map<Descendant, SchemaNode> getRefines();
}
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import java.util.Collection;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Optional;
// initSubstatementCollections
final Set<AugmentationSchemaNode> augmentationsInit = new LinkedHashSet<>();
- final Map<Descendant, SchemaNode> refinesInit = new HashMap<>();
+ final Map<Descendant, SchemaNode> refinesInit = new LinkedHashMap<>();
for (final EffectiveStatement<?, ?> effectiveStatement : effectiveSubstatements()) {
if (effectiveStatement instanceof AugmentationSchemaNode) {
final AugmentationSchemaNode augmentationSchema = (AugmentationSchemaNode) effectiveStatement;
assertEquals(4, refines.size());
assertEquals(ImmutableList.of(
- Descendant.of(QName.create(peer, "port")),
Descendant.of(QName.create(peer, "address")),
+ Descendant.of(QName.create(peer, "port")),
Descendant.of(QName.create(peer, "addresses")),
Descendant.of(QName.create(peer, "addresses"), QName.create(peer, "id"))),
new ArrayList<>(refines.keySet()));