Remove binding spec2
[mdsal.git] / binding2 / mdsal-binding2-generator-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / model / api / Enumeration.java
diff --git a/binding2/mdsal-binding2-generator-api/src/main/java/org/opendaylight/mdsal/binding/javav2/model/api/Enumeration.java b/binding2/mdsal-binding2-generator-api/src/main/java/org/opendaylight/mdsal/binding/javav2/model/api/Enumeration.java
deleted file mode 100644 (file)
index 10a3176..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.mdsal.binding.javav2.model.api;
-
-import com.google.common.annotations.Beta;
-import java.util.List;
-import org.opendaylight.yangtools.yang.model.api.DocumentedNode;
-
-/**
- *
- * Interface provide methods for reading data of enumeration class.
- *
- */
-@Beta
-public interface Enumeration extends GeneratedType {
-    /**
-     *
-     * Returns list of annotation definitions associated with enumeration type.
-     *
-     * @return list of annotation definitions associated with enumeration type.
-     *
-     */
-    @Override
-    List<AnnotationType> getAnnotations();
-
-    @Override
-    Type getParentType();
-
-    /**
-     * Returns list of the couples - name and value.
-     *
-     * @return list of the enumeration pairs.
-     */
-    List<Pair> getValues();
-
-    /**
-     * Formats enumeration according to rules of the programming language.
-     *
-     * @return string with source code in some programming language
-     */
-    String toFormattedString();
-
-    /**
-     * Interface is used for reading enumeration item. It means item's name and
-     * its value.
-     */
-    interface Pair extends DocumentedNode.WithStatus {
-
-        /**
-         * Returns the name of the enumeration item.
-         *
-         * @return the name of the enumeration item.
-         */
-        String getName();
-
-        /**
-         * Returns the binding representation for the name of the enumeration item.
-         *
-         * @return the binding representation for the name of the enumeration item.
-         */
-        String getMappedName();
-
-        /**
-         * Returns value of the enumeration item.
-         *
-         * @return the value of the enumeration item.
-         */
-        int getValue();
-    }
-}