Initial code drop of yang model driven configuration system
[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         super();
17         this.typeName = typeName;
18         this.body = body;
19         this.isPublic = isPublic;
20     }
21
22     // TODO add arguments if necessary
23
24     public Constructor(String typeName, String body) {
25         this(typeName, body, true);
26     }
27
28     public String getTypeName() {
29         return typeName;
30     }
31
32     public String getBody() {
33         return body;
34     }
35
36     public boolean isPublic() {
37         return isPublic;
38     }
39
40 }