BUG-2283 Fix close order when reconfiguring config modules.
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / AbstractModuleTemplate.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl;
9
10 import java.util.Collections;
11 import java.util.List;
12 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Constructor;
13 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Field;
14 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Header;
15 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.MethodDefinition;
16 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.ModuleField;
17
18 public class AbstractModuleTemplate extends GeneralClassTemplate {
19
20     private final List<ModuleField> moduleFields;
21     private final boolean runtime;
22     private final String registratorType;
23
24     public AbstractModuleTemplate(Header header, String packageName,
25             String abstractModuleName, List<String> extendedClasses,
26             List<String> implementedIfcs, List<ModuleField> moduleFields, List<MethodDefinition> methods,
27             boolean isRuntime, String registratorType) {
28         super(header, packageName, abstractModuleName, extendedClasses,
29                 implementedIfcs, Collections.<Field> emptyList(), methods,
30                 true, false, Collections.<Constructor> emptyList());
31         this.moduleFields = moduleFields;
32         this.runtime = isRuntime;
33         this.registratorType = registratorType;
34     }
35
36     public List<ModuleField> getModuleFields() {
37         return moduleFields;
38     }
39
40     public String getRegistratorType() {
41         return registratorType;
42     }
43
44     public boolean isRuntime() {
45         return runtime;
46     }
47
48 }