Class YangTextSource
java.lang.Object
com.google.common.io.CharSource
org.opendaylight.yangtools.yang.model.api.source.YangTextSource
- All Implemented Interfaces:
Immutable
,SourceRepresentation
,YangSourceRepresentation
- Direct Known Subclasses:
DelegatedYangTextSource
,FileYangTextSource
,StringYangTextSource
,URLYangTextSource
@NonNullByDefault
public abstract class YangTextSource
extends CharSource
implements YangSourceRepresentation
YANG text schema source representation. Exposes an RFC6020 or RFC7950 text representation as a
Reader
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelper
addToStringAttributes
(MoreObjects.ToStringHelper toStringHelper) Add subclass-specific attributes to the outputtoString()
output.final Class<YangTextSource>
getType()
Return the concrete representation type.final String
toString()
Methods inherited from class com.google.common.io.CharSource
asByteSource, concat, concat, concat, copyTo, copyTo, empty, forEachLine, isEmpty, length, lengthIfKnown, lines, openBufferedStream, openStream, read, readFirstLine, readLines, readLines, wrap
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.model.api.source.SourceRepresentation
sourceId, symbolicName
-
Constructor Details
-
YangTextSource
public YangTextSource()
-
-
Method Details
-
getType
Description copied from interface:SourceRepresentation
Return the concrete representation type.- Specified by:
getType
in interfaceSourceRepresentation
- Specified by:
getType
in interfaceYangSourceRepresentation
- Returns:
- The type of representation.
-
toString
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Add subclass-specific attributes to the outputtoString()
output. Since subclasses are prevented from overridingtoString()
for consistency reasons, they can add their specific attributes to the resulting string by attaching attributes to the suppliedMoreObjects.ToStringHelper
.- Parameters:
toStringHelper
- ToStringHelper onto the attributes can be added- Returns:
- ToStringHelper supplied as input argument.
-