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 import com.google.common.collect.Lists;
15 private final String type;
16 private final String name;
17 private final String definition;
18 private final List<String> modifiers;
20 public Field(String type, String name) {
21 this(Lists.<String> newArrayList(), type, name, null);
24 public Field(List<String> modifiers, String type, String name) {
25 this(modifiers, type, name, null);
28 public Field(List<String> modifiers, String type, String name,
30 this.modifiers = modifiers;
33 this.definition = definition;
36 public String getType() {
40 public List<String> getModifiers() {
44 public String getName() {
48 public String getDefinition() {
52 public boolean isArray() {
53 return type.endsWith("[]");