public class SchemaOrderedNormalizedNodeWriter
extends org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter
NormalizedNode. Unlike NormalizedNodeWriter, this iterates over elements
in the order as they are defined in YANG file.| Constructor and Description |
|---|
SchemaOrderedNormalizedNodeWriter(org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext,
org.opendaylight.yangtools.yang.model.api.SchemaPath path)
Create a new writer backed by a
NormalizedNodeStreamWriter. |
| Modifier and Type | Method and Description |
|---|---|
SchemaOrderedNormalizedNodeWriter |
write(Collection<org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild<?,?>> nodes)
Iterate over the provided collection and emit write
events to the encapsulated
NormalizedNodeStreamWriter. |
SchemaOrderedNormalizedNodeWriter |
write(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> node) |
protected boolean |
writeChildren(Iterable<? extends org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> children) |
public SchemaOrderedNormalizedNodeWriter(org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext,
org.opendaylight.yangtools.yang.model.api.SchemaPath path)
NormalizedNodeStreamWriter.writer - Back-end writerschemaContext - Schema contextpath - pathpublic SchemaOrderedNormalizedNodeWriter write(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> node) throws IOException
write in class org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriterIOExceptionpublic SchemaOrderedNormalizedNodeWriter write(Collection<org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild<?,?>> nodes) throws IOException
NormalizedNodeStreamWriter.nodes - nodesIOException - when thrown from the backing writer.protected boolean writeChildren(Iterable<? extends org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> children) throws IOException
writeChildren in class org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriterIOExceptionCopyright © 2019 OpenDaylight. All rights reserved.