Expose DelegatedYangTextSource 58/109658/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 7 Jan 2024 14:13:40 +0000 (15:13 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 7 Jan 2024 14:37:14 +0000 (15:37 +0100)
commitf8b228d74fd360d8f5f6b2446593ec8559d967c0
tree02f199a885a903f4b53cf85bc0dab719e38f8c20
parent440650e4309fc4627a073a58b99dbe05d039685d
Expose DelegatedYangTextSource

Eliminate YangTextSource static methods in favor of making
DelegatedYangTextSource visible. This also eliminates the slew of
possibilitiess down to the bare bones -- users can cope with the trivial
conversions from ByteSource and file name.

JIRA: YANGTOOLS-1561
Change-Id: I2321e9d936489fefe059399a750393b76730e297
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
model/yang-model-spi/src/main/java/org/opendaylight/yangtools/yang/model/spi/source/DelegatedYangTextSource.java
model/yang-model-spi/src/main/java/org/opendaylight/yangtools/yang/model/spi/source/YangTextSource.java
parser/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/YangTextSchemaContextResolver.java
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/ScannedDependency.java
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesProcessor.java