blob: 213dccfbaf94441cb35a39ff418e7abde43a521e [file] [log] [blame]
rama-huawei6c728a92016-07-11 14:48:12 +05301/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053016
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053017package org.onosproject.yangutils.datamodel;
18
rama-huawei6c728a92016-07-11 14:48:12 +053019import java.io.Serializable;
20
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053021/**
rama-huawei6c728a92016-07-11 14:48:12 +053022 * Represents data model to maintain yang app error information.
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053023 */
rama-huawei6c728a92016-07-11 14:48:12 +053024public class YangAppErrorInfo implements Serializable {
25
26 private static final long serialVersionUID = 807201693L;
Bharat saraswald9822e92016-04-05 15:13:44 +053027
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053028 /**
rama-huawei6c728a92016-07-11 14:48:12 +053029 * Application's error message, to be used for data error.
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053030 */
rama-huawei6c728a92016-07-11 14:48:12 +053031 private String errorMessage;
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053032
33 /**
rama-huawei6c728a92016-07-11 14:48:12 +053034 * Error tag, to be filled in data validation error response.
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053035 */
rama-huawei6c728a92016-07-11 14:48:12 +053036 private String errorTag;
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053037
38 /**
rama-huawei6c728a92016-07-11 14:48:12 +053039 * Application's error tag, to be filled in data validation error response.
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053040 */
rama-huawei6c728a92016-07-11 14:48:12 +053041 private String errorAppTag;
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053042
43 /**
rama-huawei6c728a92016-07-11 14:48:12 +053044 * Application's error path, to be filled in data validation error response.
Vinod Kumar S0c330cd2016-02-23 22:36:57 +053045 */
rama-huawei6c728a92016-07-11 14:48:12 +053046 private String errorAppPath;
47
48 /**
49 * Application's error info, to be filled in data validation error response.
50 */
51 private String errorAppInfo;
52
53 /**
54 * Creates a YANG app error info object.
55 */
56 @SuppressWarnings("unused")
57 public YangAppErrorInfo() {
58 }
59
60 /**
61 * Returns application's error message, to be used for data error.
62 *
63 * @return Application's error message, to be used for data error
64 */
65 public String getGetErrorMessage() {
66 return errorMessage;
67 }
68
69 /**
70 * Sets Application's error message, to be used for data error.
71 *
72 * @param errMsg Application's error message, to be used for data error
73 */
74 public void setErrorMessage(String errMsg) {
75 errorMessage = errMsg;
76 }
77
78 /**
79 * Returns error tag, to be used for data error.
80 *
81 * @return error tag, to be used for data error
82 */
83 public String getGetErrorTag() {
84 return errorTag;
85 }
86
87 /**
88 * Sets error tag, to be used for data error.
89 *
90 * @param errTag error tag, to be used for data error
91 */
92 public void setErrorTag(String errTag) {
93 errorTag = errTag;
94 }
95
96 /**
97 * Returns application's error tag, to be used for data error.
98 *
99 * @return application's error tag, to be used for data error
100 */
101 public String getGetErrorAppTag() {
102 return errorAppTag;
103 }
104
105 /**
106 * Sets application's error tag, to be used for data error.
107 *
108 * @param errTag application's error tag, to be used for data error
109 */
110 public void setErrorAppTag(String errTag) {
111 errorAppTag = errTag;
112 }
113
114 /**
115 * Returns application's error path, to be used for data error.
116 *
117 * @return application's error path, to be used for data error
118 */
119 public String getGetErrorAppPath() {
120 return errorAppPath;
121 }
122
123 /**
124 * Sets application's error path, to be used for data error.
125 *
126 * @param errPath application's error path, to be used for data error
127 */
128 public void setErrorAppPath(String errPath) {
129 errorAppPath = errPath;
130 }
131
132 /**
133 * Returns application's error info, to be used for data error.
134 *
135 * @return application's error info, to be used for data error
136 */
137 public String getGetErrorAppInfo() {
138 return errorAppInfo;
139 }
140
141 /**
142 * Sets application's error info, to be used for data error.
143 *
144 * @param errInfo application's error info, to be used for data error
145 */
146 public void setErrorAppInfo(String errInfo) {
147 errorAppInfo = errInfo;
148 }
Vinod Kumar S0c330cd2016-02-23 22:36:57 +0530149}