Class StringYangTextSchemaSource

java.lang.Object
com.google.common.io.CharSource
org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource
org.opendaylight.yangtools.yang.model.repo.api.StringYangTextSchemaSource
All Implemented Interfaces:
Identifiable<SourceIdentifier>, Immutable, SchemaSourceRepresentation, YangSchemaSourceRepresentation

public class StringYangTextSchemaSource extends YangTextSchemaSource
A YangTextSchemaSource with content readily available.
  • Constructor Details

    • StringYangTextSchemaSource

      public StringYangTextSchemaSource(SourceIdentifier identifier, String content)
    • StringYangTextSchemaSource

      public StringYangTextSchemaSource(SourceIdentifier identifier, String content, @Nullable String symbolicName)
  • Method Details

    • getSymbolicName

      public final Optional<String> getSymbolicName()
      Description copied from interface: SchemaSourceRepresentation
      Return the symbolic name, if available. This name has no semantic meaning beyond being useful for debugging by humans.
      Returns:
      Symbolic name, if available
    • openStream

      public final Reader openStream()
      Specified by:
      openStream in class CharSource