public final class YinExportUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
wellFormedYinName(String name,
Date revision)
Returns well-formed file name of YIN file as defined in RFC6020.
|
static String |
wellFormedYinName(String name,
String revision)
Returns well-formed file name of YIN file as defined in RFC6020.
|
static void |
writeModuleToOutputStream(SchemaContext ctx,
Module module,
OutputStream str)
Writes YIN representation of supplied module to specified output stream.
|
public static String wellFormedYinName(String name, Date revision)
name - Module or submodule namerevision - Revision of module or submodulepublic static String wellFormedYinName(String name, String revision)
name - name Module or submodule namerevision - Revision of module or submodulepublic static void writeModuleToOutputStream(SchemaContext ctx, Module module, OutputStream str) throws XMLStreamException
ctx - Schema Context which contains module and extension definitions
to be used during export of model.module - Module to be exported.str - Output stream to which YIN representation of model will be
written.XMLStreamExceptionCopyright © 2018 OpenDaylight. All rights reserved.