Class DelegatedYangTextSource
java.lang.Object
com.google.common.io.CharSource
org.opendaylight.yangtools.yang.model.api.source.YangTextSource
org.opendaylight.yangtools.yang.model.spi.source.DelegatedYangTextSource
- All Implemented Interfaces:
Delegator<com.google.common.io.CharSource>,Immutable,SourceRepresentation,YangSourceRepresentation
A
YangTextSource delegating to a CharSource.-
Constructor Summary
ConstructorsConstructorDescriptionDelegatedYangTextSource(SourceIdentifier sourceId, com.google.common.io.CharSource delegate) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) final com.google.common.io.CharSourcefinal Readerfinal SourceIdentifiersourceId()final @NonNull StringMethods inherited from class org.opendaylight.yangtools.yang.model.api.source.YangTextSource
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
-
DelegatedYangTextSource
Default constructor.- Parameters:
sourceId-SourceIdentifierof the resulting schema sourcedelegate- BackingCharSourceinstance
-
-
Method Details
-
openStream
- Specified by:
openStreamin classcom.google.common.io.CharSource- Throws:
IOException
-
symbolicName
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) - Overrides:
addToStringAttributesin classYangTextSource
-
sourceId
- Specified by:
sourceIdin interfaceSourceRepresentation
-
getDelegate
public final com.google.common.io.CharSource getDelegate()- Specified by:
getDelegatein interfaceDelegator<T>
-