Remove explicit default super-constructor calls
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / model / Constructor.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 public class Constructor {
11
12     private final String typeName, body;
13     private final boolean isPublic;
14
15     public Constructor(String typeName, String body, boolean isPublic) {
16         this.typeName = typeName;
17         this.body = body;
18         this.isPublic = isPublic;
19     }
20
21     // TODO add arguments if necessary
22
23     public Constructor(String typeName, String body) {
24         this(typeName, body, true);
25     }
26
27     public String getTypeName() {
28         return typeName;
29     }
30
31     public String getBody() {
32         return body;
33     }
34
35     public boolean isPublic() {
36         return isPublic;
37     }
38
39     @Override
40     public String toString() {
41         return ConstructorSerializer.toString(this);
42     }
43 }