X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=code-generator%2Fbinding-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fsal%2Fbinding%2Fmodel%2Fapi%2FEnumeration.java;h=9709be32def1212aa5b66ce9024f02891c9e1279;hb=0835b2cf948156252e2363a53f3dd48853bd27ab;hp=7d5054a2276d77623868ea2d5e0c92167db9a2c3;hpb=031514a0bcb85d1f90339d727653fb83138622a4;p=mdsal.git diff --git a/code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/Enumeration.java b/code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/Enumeration.java index 7d5054a227..9709be32de 100644 --- a/code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/Enumeration.java +++ b/code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/Enumeration.java @@ -9,54 +9,58 @@ package org.opendaylight.yangtools.sal.binding.model.api; import java.util.List; +import org.opendaylight.yangtools.yang.model.api.DocumentedNode; + /** * Interface provide methods for reading data of enumeration class. */ -public interface Enumeration extends Type { +public interface Enumeration extends GeneratedType { /** - * + * * Returns list of annotation definitions associated with enumeration type. - * + * * @return list of annotation definitions associated with enumeration type. - * + * */ - public List getAnnotations(); + @Override + List getAnnotations(); - public Type getDefiningType(); + @Override + Type getParentType(); /** * Returns list of the couples - name and value. - * + * * @return list of the enumeration pairs. */ - public List getValues(); + List getValues(); /** * Formats enumeration according to rules of the programming language. - * + * * @return string with source code in some programming language */ - public String toFormattedString(); + String toFormattedString(); /** * Interface is used for reading enumeration item. It means item's name and * its value. */ - interface Pair { + interface Pair extends DocumentedNode { /** * Returns the name of the enumeration item. - * + * * @return the name of the enumeration item. */ - public String getName(); + String getName(); /** * Returns value of the enumeration item. - * + * * @return the value of the enumeration item. */ - public Integer getValue(); + Integer getValue(); } }