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.yang.model.parser.util;
10 import org.opendaylight.controller.yang.model.api.MustDefinition;
12 public final class RefineHolder {
13 private final String name;
15 private String defaultStr;
16 private String description;
17 private String reference;
18 private Boolean config;
19 private Boolean mandatory;
20 private Boolean presence;
21 private MustDefinition must;
22 private Integer minElements;
23 private Integer maxElements;
25 public RefineHolder(final String name) {
29 public Refine getType() {
33 public void setType(final Refine type) {
37 public String getDefaultStr() {
41 public void setDefaultStr(final String defaultStr) {
42 this.defaultStr = defaultStr;
45 public String getDescription() {
49 public void setDescription(final String description) {
50 this.description = description;
53 public String getReference() {
57 public void setReference(final String reference) {
58 this.reference = reference;
61 public Boolean isConfig() {
65 public void setConfig(final Boolean config) {
69 public Boolean isMandatory() {
73 public void setMandatory(Boolean mandatory) {
74 this.mandatory = mandatory;
77 public Boolean isPresence() {
81 public void setPresence(Boolean presence) {
82 this.presence = presence;
85 public MustDefinition getMust() {
89 public void setMust(MustDefinition must) {
93 public Integer getMinElements() {
97 public void setMinElements(Integer minElements) {
98 this.minElements = minElements;
101 public Integer getMaxElements() {
105 public void setMaxElements(Integer maxElements) {
106 this.maxElements = maxElements;
109 public String getName() {
114 CONTAINER, LEAF, LIST, LEAF_LIST, CHOICE, ANYXML