Remove binding spec2
[mdsal.git] / binding2 / mdsal-binding2-java-api-generator / src / main / java / org / opendaylight / mdsal / binding / javav2 / java / api / generator / InterfaceGenerator.java
diff --git a/binding2/mdsal-binding2-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/javav2/java/api/generator/InterfaceGenerator.java b/binding2/mdsal-binding2-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/javav2/java/api/generator/InterfaceGenerator.java
deleted file mode 100644 (file)
index 12147fe..0000000
+++ /dev/null
@@ -1,49 +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.java.api.generator;
-
-import com.google.common.annotations.Beta;
-import org.opendaylight.mdsal.binding.javav2.java.api.generator.renderers.InterfaceRenderer;
-import org.opendaylight.mdsal.binding.javav2.model.api.CodeGenerator;
-import org.opendaylight.mdsal.binding.javav2.model.api.Enumeration;
-import org.opendaylight.mdsal.binding.javav2.model.api.GeneratedTransferObject;
-import org.opendaylight.mdsal.binding.javav2.model.api.GeneratedType;
-import org.opendaylight.mdsal.binding.javav2.model.api.Type;
-import org.opendaylight.mdsal.binding.javav2.model.api.UnitName;
-import org.opendaylight.yangtools.concepts.Identifier;
-
-/**
- * Transforms data from virtual form to JAVA source code. Resulting source code represents JAVA
- * interface. Source code generation process is supported by interface template written
- * in Twirl (Scala based) language.
- */
-@Beta
-public final class InterfaceGenerator implements CodeGenerator {
-
-    @Override
-    public String generate(Type type) {
-        if ((type instanceof GeneratedType) && !(type instanceof GeneratedTransferObject)) {
-            final GeneratedType genType = (GeneratedType) type;
-            return new InterfaceRenderer(genType).generateTemplate();
-        } else {
-            return "";
-        }
-    }
-
-    @Override
-    public boolean isAcceptable(Type type) {
-        return type instanceof GeneratedType && !(type instanceof GeneratedTransferObject)
-                && !(type instanceof Enumeration);
-    }
-
-    @Override
-    public Identifier getUnitName(Type type) {
-        return new UnitName(type.getName());
-    }
-}