java.lang.Object
com.google.common.io.ByteSource
org.opendaylight.yangtools.yang.model.api.source.YinTextSource
org.opendaylight.yangtools.yang.model.spi.source.DelegatedYinTextSource
All Implemented Interfaces:
Delegator<com.google.common.io.ByteSource>, Immutable, SourceRepresentation, YinSourceRepresentation

@NonNullByDefault public class DelegatedYinTextSource extends YinTextSource
A YinTextSource delegating to a ByteSource.
  • Constructor Details

    • DelegatedYinTextSource

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

    • openStream

      public final InputStream openStream() throws IOException
      Specified by:
      openStream in class com.google.common.io.ByteSource
      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 YinTextSource
    • sourceId

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

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