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 StringReturn underlying delegate.final Readerfinal SourceIdentifiersourceId()TheSourceIdentifierof this source.final StringReturn the symbolic name, if available.Methods inherited from class org.opendaylight.yangtools.yang.model.api.source.YangTextSource
addToStringAttributes, getType, toStringMethods 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:SourceRepresentationReturn 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:
openStreamin classCharSource
-
sourceId
Description copied from interface:SourceRepresentationTheSourceIdentifierof this source.- Specified by:
sourceIdin interfaceSourceRepresentation- Returns:
SourceIdentifierof this source
-
getDelegate
Description copied from interface:DelegatorReturn underlying delegate.- Specified by:
getDelegatein interfaceDelegator<T>- Returns:
- underlying delegate.
-