1aeb86d25df088fb5a3303a8ae1bb02500a2f346
[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 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.