Code Review
/
mdsal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 1411: MDSAL Binding2 Generator API Enumeration fix
[mdsal.git]
/
binding2
/
mdsal-binding2-generator-api
/
src
/
main
/
java
/
org
/
opendaylight
/
mdsal
/
binding2
/
model
/
api
/
type
/
builder
/
EnumBuilder.java
diff --git
a/binding2/mdsal-binding2-generator-api/src/main/java/org/opendaylight/mdsal/binding2/model/api/type/builder/EnumBuilder.java
b/binding2/mdsal-binding2-generator-api/src/main/java/org/opendaylight/mdsal/binding2/model/api/type/builder/EnumBuilder.java
index d8212e209f6cf65cf067957c83e97f99ef36e9d2..20f6481aa3faf42b5caece0bf10abae553428cf4 100644
(file)
--- a/
binding2/mdsal-binding2-generator-api/src/main/java/org/opendaylight/mdsal/binding2/model/api/type/builder/EnumBuilder.java
+++ b/
binding2/mdsal-binding2-generator-api/src/main/java/org/opendaylight/mdsal/binding2/model/api/type/builder/EnumBuilder.java
@@
-9,8
+9,9
@@
package org.opendaylight.mdsal.binding2.model.api.type.builder;
import com.google.common.annotations.Beta;
package org.opendaylight.mdsal.binding2.model.api.type.builder;
import com.google.common.annotations.Beta;
-import
java.util
.Enumeration;
+import
org.opendaylight.mdsal.binding2.model.api
.Enumeration;
import org.opendaylight.mdsal.binding2.model.api.Type;
import org.opendaylight.mdsal.binding2.model.api.Type;
+import org.opendaylight.yangtools.yang.model.api.Status;
import org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition;
/**
import org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition;
/**
@@
-23,10
+24,10
@@
import org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition;
public interface EnumBuilder extends Type {
/**
* The method creates new AnnotationTypeBuilder containing specified package
public interface EnumBuilder extends Type {
/**
* The method creates new AnnotationTypeBuilder containing specified package
- * name an annotation name. <br>
+ * name an
d
annotation name. <br>
* Neither the package name or annotation name can contain <code>null</code>
* references. In case that any of parameters contains <code>null</code> the
* Neither the package name or annotation name can contain <code>null</code>
* references. In case that any of parameters contains <code>null</code> the
- * method SHOULD throw
n
{@link IllegalArgumentException}
+ * method SHOULD throw {@link IllegalArgumentException}
*
* @param packageName
* Package Name of Annotation Type
*
* @param packageName
* Package Name of Annotation Type
@@
-39,14
+40,24
@@
public interface EnumBuilder extends Type {
/**
*
* @param name
/**
*
* @param name
+ * assigned name
* @param value
* @param value
+ * as optionally defined in YANG model
+ * @param description
+ * as optionally defined in YANG model
+ * @param reference
+ * as optionally defined in YANG model
+ * @param status
+ * as optionally defined in YANG model
*/
*/
- void addValue(final String name, final Integer value, final String description);
+ void addValue(final String name, final int value, final String description,
+ final String reference, final Status status);
/**
*
* @param definingType
/**
*
* @param definingType
- * @return
+ * Type
+ * @return Enumeration
*/
Enumeration toInstance(final Type definingType);
*/
Enumeration toInstance(final Type definingType);