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) {
16 this.typeName = typeName;
18 this.isPublic = isPublic;
21 // TODO add arguments if necessary
23 public Constructor(String typeName, String body) {
24 this(typeName, body, true);
27 public String getTypeName() {
31 public String getBody() {
35 public boolean isPublic() {
40 public String toString() {
41 return ConstructorSerializer.toString(this);