ee0aa2ff5c22a7e054a931b7a36a6d0b89569c94
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / model / TypeDeclaration.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.model;
9
10 import java.util.List;
11
12 public class TypeDeclaration {
13     private final String type, name;
14     private final List<String> extended, implemented;
15     private final boolean isAbstract, isFinal;
16
17     public TypeDeclaration(String type, String name, List<String> extended,
18             List<String> implemented, boolean isAbstract, boolean isFinal) {
19         super();
20         this.type = type;
21         this.name = name;
22         this.extended = extended;
23         this.implemented = implemented;
24         this.isAbstract = isAbstract;
25         this.isFinal = isFinal;
26     }
27
28     public TypeDeclaration(String type, String name, List<String> extended,
29             List<String> implemented) {
30         this(type, name, extended, implemented, false, false);
31     }
32
33     public boolean isAbstract() {
34         return isAbstract;
35     }
36
37     public boolean isFinal() {
38         return isFinal;
39     }
40
41     public String getType() {
42         return type;
43     }
44
45     public String getName() {
46         return name;
47     }
48
49     public List<String> getExtended() {
50         return extended;
51     }
52
53     public List<String> getImplemented() {
54         return implemented;
55     }
56
57     @Override
58     public String toString() {
59         return "TypeDeclaration{" + "type='" + type + '\'' + ", name='" + name
60                 + '\'' + '}';
61     }
62 }