@NonNullByDefault
public interface YangModuleInfo
extends org.opendaylight.yangtools.concepts.Immutable
YangModuleInfo
instances as observed at code generation
time.
The purpose of this class is to ensure package resolution order in OSGi environments, as implementations of this interface are required to be co-located with generated code. When this module relies on some imports, that dependency is expressed across jars via an implementation requirement to reference YangModuleInfos.
Modifier and Type | Method and Description |
---|---|
default Collection<YangModuleInfo> |
getImportedModules()
Return
YangModuleInfo objects for all modules which are imported by this module. |
org.opendaylight.yangtools.yang.common.QName |
getName()
Returns YANG module name, as a composite
QName . |
default com.google.common.io.ByteSource |
getYangTextByteSource()
Return a
ByteSource accessing the YANG text of the module. |
default com.google.common.io.CharSource |
getYangTextCharSource()
Return a
CharSource accessing the YANG text of the module. |
InputStream |
openYangTextStream()
Return an open stream containing YANG text for this module.
|
org.opendaylight.yangtools.yang.common.QName getName()
QName
. Module's namespace and revision maps to
QName.getModule()
and module name maps to QName.getLocalName()
.InputStream openYangTextStream() throws IOException
IOException
- If the stream cannot be opened.default Collection<YangModuleInfo> getImportedModules()
YangModuleInfo
objects for all modules which are imported by this module. Default implementation
returns an empty list.YangModuleInfo
objects of all imported modules.default com.google.common.io.ByteSource getYangTextByteSource()
ByteSource
accessing the YANG text of the module.default com.google.common.io.CharSource getYangTextCharSource()
CharSource
accessing the YANG text of the module.Copyright © 2019 OpenDaylight. All rights reserved.