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.ToStringHelperfinal InputStreamReturn an open stream containing YANG text for this module.protected abstract Stringfinal StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:YangModuleInfoReturn an open stream containing YANG text for this module. The stream is required to be UTF-8 encoded.- Specified by:
openYangTextStreamin interfaceYangModuleInfo- Returns:
- An open stream.
- Throws:
IOException- If the stream cannot be opened.
-
toString
Description copied from interface:ImmutableAny two invocations of this method are guaranteed to return a non-null
String.equals(Object)value. -
addToStringHelperAttributes
-
resourceName
-