Class StringYangTextSource
java.lang.Object
com.google.common.io.CharSource
org.opendaylight.yangtools.yang.model.spi.source.YangTextSource
org.opendaylight.yangtools.yang.model.spi.source.StringYangTextSource
- All Implemented Interfaces:
Immutable
,SourceRepresentation
,YangSourceRepresentation
A
YangTextSource
with content readily available.-
Constructor Summary
ConstructorsConstructorDescriptionStringYangTextSource
(SourceIdentifier sourceId, String content) StringYangTextSource
(SourceIdentifier sourceId, String content, @Nullable String symbolicName) -
Method Summary
Methods inherited from class org.opendaylight.yangtools.yang.model.spi.source.YangTextSource
addToStringAttributes, delegateForByteSource, delegateForByteSource, delegateForCharSource, delegateForCharSource, forPath, forPath, forPath, forResource, forResource, forResource, forURL, forURL, getType, identifierFromFilename, sourceId, toString
Methods inherited from class com.google.common.io.CharSource
asByteSource, concat, concat, concat, copyTo, copyTo, empty, forEachLine, isEmpty, length, lengthIfKnown, lines, openBufferedStream, read, readFirstLine, readLines, readLines, wrap
-
Constructor Details
-
StringYangTextSource
-
StringYangTextSource
public StringYangTextSource(SourceIdentifier sourceId, String content, @Nullable String symbolicName)
-
-
Method Details
-
symbolicName
Description copied from interface:SourceRepresentation
Return the symbolic name, if available. This name has no semantic meaning beyond being useful for debugging by humans.- Returns:
- Symbolic name, if available
-
openStream
- Specified by:
openStream
in classCharSource
-