Add YANG/YIN namespace string literals 16/68416/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Feb 2018 15:22:54 +0000 (16:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Feb 2018 17:38:34 +0000 (18:38 +0100)
commit20216a64f35c0b0ea7a1911df5fbed90e1f045b5
treed7c4f4de4e871849ca1afe56440997353f5508ff
parent564632709d12c04534550d4efc92721e8c7e558f
Add YANG/YIN namespace string literals

Interacting with Java XML machinery requires the use of Strings
for namespaces. It is useful to implement javax.xml.NamespaceContext
with switch() statement, which unfortunately can only work on explicit
string literals. Expose these literals, improving the ergonomics.

Change-Id: I534d2a6e13960ba7587bfe77ed581e8593e65a17
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangConstants.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/ArgumentUtils.java