public class SchemaOrderedNormalizedNodeWriter extends NormalizedNodeWriter
NormalizedNode. Unlike NormalizedNodeWriter, this iterates over elements
in the order as they are defined in YANG file.| Constructor and Description |
|---|
SchemaOrderedNormalizedNodeWriter(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext,
SchemaPath path)
Create a new writer backed by a
NormalizedNodeStreamWriter. |
| Modifier and Type | Method and Description |
|---|---|
SchemaOrderedNormalizedNodeWriter |
write(Collection<DataContainerChild<?,?>> nodes)
Iterate over the provided collection and emit write
events to the encapsulated
NormalizedNodeStreamWriter. |
SchemaOrderedNormalizedNodeWriter |
write(NormalizedNode<?,?> node)
Iterate over the provided
NormalizedNode and emit write
events to the encapsulated NormalizedNodeStreamWriter. |
protected boolean |
writeChildren(Iterable<? extends NormalizedNode<?,?>> children)
Emit events for all children and then emit an endNode() event.
|
childSizeHint, close, flush, forStreamWriter, forStreamWriter, getWriter, wasProcessAsSimpleNode, wasProcessedAsCompositeNode, writeMapEntryNodepublic SchemaOrderedNormalizedNodeWriter(NormalizedNodeStreamWriter writer, SchemaContext schemaContext, SchemaPath path)
NormalizedNodeStreamWriter.writer - Back-end writerschemaContext - Schema contextpath - pathpublic SchemaOrderedNormalizedNodeWriter write(NormalizedNode<?,?> node) throws IOException
NormalizedNodeWriterNormalizedNode and emit write
events to the encapsulated NormalizedNodeStreamWriter.write in class NormalizedNodeWriternode - NodeIOException - when thrown from the backing writer.public SchemaOrderedNormalizedNodeWriter write(Collection<DataContainerChild<?,?>> nodes) throws IOException
NormalizedNodeStreamWriter.nodes - nodesIOException - when thrown from the backing writer.protected boolean writeChildren(Iterable<? extends NormalizedNode<?,?>> children) throws IOException
NormalizedNodeWriterwriteChildren in class NormalizedNodeWriterchildren - Child iterableIOException - when the writer reports itCopyright © 2019 OpenDaylight. All rights reserved.