X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-jmx-generator-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyangjmxgenerator%2Fplugin%2Fftl%2FGeneralClassTemplate.java;fp=opendaylight%2Fconfig%2Fyang-jmx-generator-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyangjmxgenerator%2Fplugin%2Fftl%2FGeneralClassTemplate.java;h=0000000000000000000000000000000000000000;hp=4adb2b0cf590b1d5a7b8ccba9707e00d72c2ee4e;hb=ac6f2699cd0c1e340cc32e8f0d0ca94c8e9c0cc0;hpb=f43b01b81319959b1907e3e04537f5169e7f33d8;ds=sidebyside diff --git a/opendaylight/config/yang-jmx-generator-plugin/src/main/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/ftl/GeneralClassTemplate.java b/opendaylight/config/yang-jmx-generator-plugin/src/main/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/ftl/GeneralClassTemplate.java deleted file mode 100644 index 4adb2b0cf5..0000000000 --- a/opendaylight/config/yang-jmx-generator-plugin/src/main/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/ftl/GeneralClassTemplate.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2013 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.controller.config.yangjmxgenerator.plugin.ftl; - -import java.util.Collections; -import java.util.List; -import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Constructor; -import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Field; -import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Header; -import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.MethodDefinition; -import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.TypeDeclaration; - -public class GeneralClassTemplate extends AbstractFtlTemplate { - - private final List constructors; - - public GeneralClassTemplate(Header header, String packageName, String name, - List extendedClasses, List implementedIfcs, - List fields, List methods) { - this(header, packageName, name, extendedClasses, implementedIfcs, - fields, methods, false, false, Collections - . emptyList()); - } - - public GeneralClassTemplate(Header header, String packageName, String name, - List extendedClasses, List implementedIfcs, - List fields, List methods, - boolean isAbstract, boolean isFinal, List constructors) { - super(header, packageName, fields, methods, new TypeDeclaration( - "class", name, checkCardinality(extendedClasses), - implementedIfcs, isAbstract, isFinal)); - this.constructors = constructors; - } - - static List checkCardinality(List extendedClass) { - if (extendedClass.size() > 1) { - throw new IllegalArgumentException( - "Class cannot have more than one super class, found: " + extendedClass); - } - return extendedClass; - } - - public List getConstructors() { - return constructors; - } - -}