2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model;
10 public class Constructor {
12 private final String typeName, body;
13 private final boolean isPublic;
15 public Constructor(String typeName, String body, boolean isPublic) {
17 this.typeName = typeName;
19 this.isPublic = isPublic;
22 // TODO add arguments if necessary
24 public Constructor(String typeName, String body) {
25 this(typeName, body, true);
28 public String getTypeName() {
32 public String getBody() {
36 public boolean isPublic() {
41 public String toString() {
42 return ConstructorSerializer.toString(this);