-
- @SuppressWarnings("unchecked")
- private ListNodeBuilder<Object, LeafSetEntryNode<Object>> addLeafSetChildren(final QName nodeType,
- final ListNodeBuilder<Object, LeafSetEntryNode<Object>> builder) throws IOException {
-
- LOG.trace("Reading children of leaf set");
-
- lastLeafSetQName = nodeType;
-
- LeafSetEntryNode<Object> child = (LeafSetEntryNode<Object>)readNormalizedNodeInternal();
-
- while (child != null) {
- builder.withChild(child);
- child = (LeafSetEntryNode<Object>)readNormalizedNodeInternal();
- }
- return builder;
- }
-
- @SuppressWarnings({ "unchecked", "rawtypes" })
- private NormalizedNodeContainerBuilder addDataContainerChildren(
- final NormalizedNodeContainerBuilder builder) throws IOException {
- LOG.trace("Reading data container (leaf nodes) nodes");
-
- NormalizedNode<?, ?> child = readNormalizedNodeInternal();
-
- while (child != null) {
- builder.addChild(child);
- child = readNormalizedNodeInternal();
- }
- return builder;
- }