Class StringYangTextSource
java.lang.Object
com.google.common.io.CharSource
org.opendaylight.yangtools.yang.model.api.source.YangTextSource
org.opendaylight.yangtools.yang.model.spi.source.StringYangTextSource
- All Implemented Interfaces:
Delegator<String>
,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
Modifier and TypeMethodDescriptionfinal String
Return underlying delegate.final Reader
final SourceIdentifier
sourceId()
TheSourceIdentifier
of this source.final String
Return the symbolic name, if available.Methods inherited from class org.opendaylight.yangtools.yang.model.api.source.YangTextSource
addToStringAttributes, getType, 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
-
sourceId
Description copied from interface:SourceRepresentation
TheSourceIdentifier
of this source.- Specified by:
sourceId
in interfaceSourceRepresentation
- Returns:
SourceIdentifier
of this source
-
getDelegate
Description copied from interface:Delegator
Return underlying delegate.- Specified by:
getDelegate
in interfaceDelegator<T>
- Returns:
- underlying delegate.
-