Integrate JavaTypeName as Identifier
[mdsal.git] / binding / mdsal-binding-generator-api / src / main / java / org / opendaylight / mdsal / binding / model / api / type / builder / EnumBuilder.java
index ef95d8cc6731af434d56a5ad1858240b2f0dd3e6..88eb12c859cbc24a06af82b30333743dcb1e37ad 100644 (file)
@@ -12,48 +12,21 @@ import org.opendaylight.mdsal.binding.model.api.Type;
 import org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition;
 
 /**
- * Enum Builder is interface that contains methods to build and instantiate
- * Enumeration definition.
+ * Enum Builder is interface that contains methods to build and instantiate Enumeration definition.
  *
  * @see Enumeration
  */
-public interface EnumBuilder extends Type {
+public interface EnumBuilder extends Type, AnnotableTypeBuilder {
 
-    /**
-     * The method creates new AnnotationTypeBuilder containing specified package
-     * name an 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
-     * method SHOULD thrown {@link IllegalArgumentException}
-     *
-     * @param packageName
-     *            Package Name of Annotation Type
-     * @param name
-     *            Name of Annotation Type
-     * @return <code>new</code> instance of Annotation Type Builder.
-     */
-    AnnotationTypeBuilder addAnnotation(final String packageName, final String name);
+    void setDescription(final String description);
 
-    /**
-     *
-     * @param definingType
-     * @return
-     */
     Enumeration toInstance(final Type definingType);
 
     /**
-     * Updates this builder with data from <code>enumTypeDef</code>.
-     * Specifically this data represents list of value-name pairs.
+     * Updates this builder with data from <code>enumTypeDef</code>. Specifically this data represents list
+     * of value-name pairs.
      *
-     * @param enumTypeDef
-     *            enum type definition as source of enum data for
-     *            <code>enumBuilder</code>
+     * @param enumTypeDef enum type definition as source of enum data for <code>enumBuilder</code>
      */
     void updateEnumPairsFromEnumTypeDef(final EnumTypeDefinition enumTypeDef);
-
-    /**
-     * @param description
-     */
-    void setDescription(final String description);
-
 }