Class ResourceYangModuleInfo
java.lang.Object
org.opendaylight.yangtools.binding.lib.ResourceYangModuleInfo
- All Implemented Interfaces:
YangModuleInfo
,Immutable
@Beta
@NonNullByDefault
public abstract class ResourceYangModuleInfo
extends Object
implements YangModuleInfo
Base utility class for providing YANG module info backed by class resources.
- Author:
- Robert Varga
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
final InputStream
Return an open stream containing YANG text for this module.protected abstract String
final String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.binding.meta.YangModuleInfo
getImportedModules, getName, getYangTextByteSource, getYangTextCharSource
-
Constructor Details
-
ResourceYangModuleInfo
public ResourceYangModuleInfo()
-
-
Method Details
-
openYangTextStream
Description copied from interface:YangModuleInfo
Return an open stream containing YANG text for this module. The stream is required to be UTF-8 encoded.- Specified by:
openYangTextStream
in interfaceYangModuleInfo
- Returns:
- An open stream.
- Throws:
IOException
- If the stream cannot be opened.
-
toString
-
addToStringHelperAttributes
-
resourceName
-