Add Enumeration yang-binding interface 32/69332/11
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 10 Mar 2018 08:47:52 +0000 (09:47 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 12 Mar 2018 10:21:09 +0000 (11:21 +0100)
commitb9c5b8d5e41d2ebd420cea4f60978c368c6726ad
tree75da5853f3083d0bac41ce2ae3ea3eeda7f12279
parentda25abc168541f9531bccb48a9669bcc6dbe54b8
Add Enumeration yang-binding interface

All generated enumerations expose two methods. Capture and document
them in an interface and adjust the template accordingly. Also adds
a forName() static factory method, to keep symmetry with forValue().

JIRA: MDSAL-317
Change-Id: Iebddded0a4e1ec3534e87a878a8f571cd45ebbae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/EnumTemplate.xtend
binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/Enumeration.java [new file with mode: 0644]