Merge "Bug 509: Fixed incorrect merging of Data Store Writes / Events"
[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 org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Constructor;
11 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Field;
12 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Header;
13 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.MethodDefinition;
14 import org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.ModuleField;
15
16 import java.util.Collections;
17 import java.util.List;
18
19 public class AbstractModuleTemplate extends GeneralClassTemplate {
20
21     private final List<ModuleField> moduleFields;
22     private final boolean runtime;
23     private final String registratorType;
24
25     public AbstractModuleTemplate(Header header, String packageName,
26             String abstractModuleName, List<String> implementedIfcs,
27             List<ModuleField> moduleFields, List<MethodDefinition> methods,
28             boolean isRuntime, String registratorType) {
29         super(header, packageName, abstractModuleName, Collections
30                 .<String> emptyList(), implementedIfcs, Collections
31                 .<Field> emptyList(), methods, true, false, Collections
32                 .<Constructor> emptyList());
33         this.moduleFields = moduleFields;
34         this.runtime = isRuntime;
35         this.registratorType = registratorType;
36     }
37
38     public List<ModuleField> getModuleFields() {
39         return moduleFields;
40     }
41
42     public String getRegistratorType() {
43         return registratorType;
44     }
45
46     public boolean isRuntime() {
47         return runtime;
48     }
49
50 }