Class ResourceYangModuleInfo
- java.lang.Object
-
- org.opendaylight.yangtools.yang.binding.ResourceYangModuleInfo
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,YangModuleInfo
@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 Constructor Description ResourceYangModuleInfo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToStringHelperAttributes(MoreObjects.ToStringHelper helper)
InputStream
openYangTextStream()
Return an open stream containing YANG text for this module.protected abstract String
resourceName()
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.yang.binding.YangModuleInfo
getImportedModules, getName, getYangTextByteSource, getYangTextCharSource
-
-
-
-
Method Detail
-
openYangTextStream
public final InputStream openYangTextStream() throws IOException
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.
-
addToStringHelperAttributes
protected MoreObjects.ToStringHelper addToStringHelperAttributes(MoreObjects.ToStringHelper helper)
-
resourceName
protected abstract String resourceName()
-
-