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

@NonNullByDefault public class DelegatedYangTextSource extends YangTextSource
A YangTextSource delegating to a CharSource.
  • Constructor Details

    • DelegatedYangTextSource

      public DelegatedYangTextSource(SourceIdentifier sourceId, com.google.common.io.CharSource delegate)
      Default constructor.
      Parameters:
      sourceId - SourceIdentifier of the resulting schema source
      delegate - Backing CharSource instance
  • Method Details

    • openStream

      public final Reader openStream() throws IOException
      Specified by:
      openStream in class com.google.common.io.CharSource
      Throws:
      IOException
    • symbolicName

      public final @NonNull String symbolicName()
    • addToStringAttributes

      protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
      Overrides:
      addToStringAttributes in class YangTextSource
    • sourceId

      public final SourceIdentifier sourceId()
      Specified by:
      sourceId in interface SourceRepresentation
    • getDelegate

      public final com.google.common.io.CharSource getDelegate()
      Specified by:
      getDelegate in interface Delegator<T>