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 import java.util.List;
12 public class TypeDeclaration {
13 private final String type, name;
14 private final List<String> extended, implemented;
15 private final boolean isAbstract, isFinal;
17 public TypeDeclaration(String type, String name, List<String> extended,
18 List<String> implemented, boolean isAbstract, boolean isFinal) {
22 this.extended = extended;
23 this.implemented = implemented;
24 this.isAbstract = isAbstract;
25 this.isFinal = isFinal;
28 public TypeDeclaration(String type, String name, List<String> extended,
29 List<String> implemented) {
30 this(type, name, extended, implemented, false, false);
33 public boolean isAbstract() {
37 public boolean isFinal() {
41 public String getType() {
45 public String getName() {
49 public List<String> getExtended() {
53 public List<String> getImplemented() {
58 public String toString() {
59 return "TypeDeclaration{" + "type='" + type + '\'' + ", name='" + name