0c31655610410e50ab929546e4d69464462df115
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / model / parser / util / RefineHolder.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.yang.model.parser.util;
9
10 import java.util.ArrayList;
11 import java.util.List;
12
13 import org.opendaylight.controller.yang.model.api.MustDefinition;
14 import org.opendaylight.controller.yang.model.parser.builder.api.Builder;
15 import org.opendaylight.controller.yang.model.parser.builder.impl.UnknownSchemaNodeBuilder;
16
17 public final class RefineHolder implements Builder {
18     private final String name;
19     private String defaultStr;
20     private String description;
21     private String reference;
22     private Boolean config;
23     private Boolean mandatory;
24     private Boolean presence;
25     private MustDefinition must;
26     private Integer minElements;
27     private Integer maxElements;
28     private final List<UnknownSchemaNodeBuilder> addedUnknownNodes = new ArrayList<UnknownSchemaNodeBuilder>();
29
30     public RefineHolder(final String name) {
31         this.name = name;
32     }
33
34     public String getDefaultStr() {
35         return defaultStr;
36     }
37
38     public void setDefaultStr(final String defaultStr) {
39         this.defaultStr = defaultStr;
40     }
41
42     public String getDescription() {
43         return description;
44     }
45
46     public void setDescription(final String description) {
47         this.description = description;
48     }
49
50     public String getReference() {
51         return reference;
52     }
53
54     public void setReference(final String reference) {
55         this.reference = reference;
56     }
57
58     public Boolean isConfig() {
59         return config;
60     }
61
62     public void setConfig(final Boolean config) {
63         this.config = config;
64     }
65
66     public Boolean isMandatory() {
67         return mandatory;
68     }
69
70     public void setMandatory(Boolean mandatory) {
71         this.mandatory = mandatory;
72     }
73
74     public Boolean isPresence() {
75         return presence;
76     }
77
78     public void setPresence(Boolean presence) {
79         this.presence = presence;
80     }
81
82     public MustDefinition getMust() {
83         return must;
84     }
85
86     public void setMust(MustDefinition must) {
87         this.must = must;
88     }
89
90     public Integer getMinElements() {
91         return minElements;
92     }
93
94     public void setMinElements(Integer minElements) {
95         this.minElements = minElements;
96     }
97
98     public Integer getMaxElements() {
99         return maxElements;
100     }
101
102     public void setMaxElements(Integer maxElements) {
103         this.maxElements = maxElements;
104     }
105
106     public String getName() {
107         return name;
108     }
109
110     public List<UnknownSchemaNodeBuilder> getUnknownNodes() {
111         return addedUnknownNodes;
112     }
113
114     public void addUnknownSchemaNode(UnknownSchemaNodeBuilder unknownNode) {
115         addedUnknownNodes.add(unknownNode);
116     }
117
118     @Override
119     public Object build() {
120         return null;
121     }
122
123 }