Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | * use this file except in compliance with the License. You may obtain a copy |
| 6 | * 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, WITHOUT |
| 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | * License for the specific language governing permissions and limitations under |
| 14 | * the License. |
| 15 | */ |
| 16 | // CHECKSTYLE:OFF |
| 17 | |
| 18 | package org.onosproject.netconf.rpc; |
| 19 | |
| 20 | import javax.xml.bind.JAXBElement; |
| 21 | import javax.xml.bind.annotation.XmlElementDecl; |
| 22 | import javax.xml.bind.annotation.XmlRegistry; |
| 23 | import javax.xml.namespace.QName; |
| 24 | |
| 25 | |
| 26 | /** |
| 27 | * This object contains factory methods for each |
| 28 | * Java content interface and Java element interface |
| 29 | * generated in the org.onosproject.netconf.rpc package. |
| 30 | * <p>An ObjectFactory allows you to programatically |
| 31 | * construct new instances of the Java representation |
| 32 | * for XML content. The Java representation of XML |
| 33 | * content can consist of schema derived interfaces |
| 34 | * and classes representing the binding of schema |
| 35 | * type definitions, element declarations and model |
| 36 | * groups. Factory methods for each of these are |
| 37 | * provided in this class. |
| 38 | * |
| 39 | */ |
| 40 | @XmlRegistry |
| 41 | public class ObjectFactory { |
| 42 | |
| 43 | private final static QName _Rpc_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "rpc"); |
| 44 | private final static QName _RpcReply_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "rpc-reply"); |
| 45 | private final static QName _RpcError_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "rpc-error"); |
| 46 | private final static QName _RpcOperation_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "rpcOperation"); |
| 47 | private final static QName _RpcResponse_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "rpcResponse"); |
| 48 | private final static QName _ErrorInfoTypeBadAttribute_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "bad-attribute"); |
| 49 | private final static QName _ErrorInfoTypeBadElement_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "bad-element"); |
| 50 | private final static QName _ErrorInfoTypeOkElement_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "ok-element"); |
| 51 | private final static QName _ErrorInfoTypeErrElement_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "err-element"); |
| 52 | private final static QName _ErrorInfoTypeNoopElement_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "noop-element"); |
| 53 | private final static QName _ErrorInfoTypeBadNamespace_QNAME = new QName("urn:ietf:params:xml:ns:netconf:base:1.0", "bad-namespace"); |
| 54 | |
| 55 | /** |
| 56 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.onosproject.netconf.rpc |
| 57 | * |
| 58 | */ |
| 59 | public ObjectFactory() { |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Create an instance of {@link Hello } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 64 | * @return hello message |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 65 | */ |
| 66 | public Hello createHello() { |
| 67 | return new Hello(); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Create an instance of {@link RpcErrorType } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 72 | * @return error type |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 73 | */ |
| 74 | public RpcErrorType createRpcErrorType() { |
| 75 | return new RpcErrorType(); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Create an instance of {@link RpcType } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 80 | * @return rpc type |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 81 | */ |
| 82 | public RpcType createRpcType() { |
| 83 | return new RpcType(); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Create an instance of {@link RpcReplyType } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 88 | * @return rpc reply type |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 89 | */ |
| 90 | public RpcReplyType createRpcReplyType() { |
| 91 | return new RpcReplyType(); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Create an instance of {@link RpcOperationType } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 96 | * @return rpc operation type |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 97 | */ |
| 98 | public RpcOperationType createRpcOperationType() { |
| 99 | return new RpcOperationType(); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Create an instance of {@link RpcResponseType } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 104 | * @return rpc response type |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 105 | */ |
| 106 | public RpcResponseType createRpcResponseType() { |
| 107 | return new RpcResponseType(); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Create an instance of {@link Hello.Capabilities } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 112 | * @return hello capabilities |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 113 | */ |
| 114 | public Hello.Capabilities createHelloCapabilities() { |
| 115 | return new Hello.Capabilities(); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Create an instance of {@link ErrorInfoType } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 120 | * @return error info type |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 121 | */ |
| 122 | public ErrorInfoType createErrorInfoType() { |
| 123 | return new ErrorInfoType(); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Create an instance of {@link RpcErrorType.ErrorMessage } |
Thomas Vachuska | a01ef78 | 2018-07-25 14:07:11 -0700 | [diff] [blame^] | 128 | * @return error message |
Yuta HIGUCHI | d1c413b | 2018-02-20 14:52:00 -0800 | [diff] [blame] | 129 | */ |
| 130 | public RpcErrorType.ErrorMessage createRpcErrorTypeErrorMessage() { |
| 131 | return new RpcErrorType.ErrorMessage(); |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Create an instance of {@link JAXBElement }{@code <}{@link RpcType }{@code >} |
| 136 | * |
| 137 | * @param value |
| 138 | * Java instance representing xml element's value. |
| 139 | * @return |
| 140 | * the new instance of {@link JAXBElement }{@code <}{@link RpcType }{@code >} |
| 141 | */ |
| 142 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "rpc") |
| 143 | public JAXBElement<RpcType> createRpc(RpcType value) { |
| 144 | return new JAXBElement<RpcType>(_Rpc_QNAME, RpcType.class, null, value); |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Create an instance of {@link JAXBElement }{@code <}{@link RpcReplyType }{@code >} |
| 149 | * |
| 150 | * @param value |
| 151 | * Java instance representing xml element's value. |
| 152 | * @return |
| 153 | * the new instance of {@link JAXBElement }{@code <}{@link RpcReplyType }{@code >} |
| 154 | */ |
| 155 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "rpc-reply") |
| 156 | public JAXBElement<RpcReplyType> createRpcReply(RpcReplyType value) { |
| 157 | return new JAXBElement<RpcReplyType>(_RpcReply_QNAME, RpcReplyType.class, null, value); |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Create an instance of {@link JAXBElement }{@code <}{@link RpcErrorType }{@code >} |
| 162 | * |
| 163 | * @param value |
| 164 | * Java instance representing xml element's value. |
| 165 | * @return |
| 166 | * the new instance of {@link JAXBElement }{@code <}{@link RpcErrorType }{@code >} |
| 167 | */ |
| 168 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "rpc-error") |
| 169 | public JAXBElement<RpcErrorType> createRpcError(RpcErrorType value) { |
| 170 | return new JAXBElement<RpcErrorType>(_RpcError_QNAME, RpcErrorType.class, null, value); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Create an instance of {@link JAXBElement }{@code <}{@link RpcOperationType }{@code >} |
| 175 | * |
| 176 | * @param value |
| 177 | * Java instance representing xml element's value. |
| 178 | * @return |
| 179 | * the new instance of {@link JAXBElement }{@code <}{@link RpcOperationType }{@code >} |
| 180 | */ |
| 181 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "rpcOperation") |
| 182 | public JAXBElement<RpcOperationType> createRpcOperation(RpcOperationType value) { |
| 183 | return new JAXBElement<RpcOperationType>(_RpcOperation_QNAME, RpcOperationType.class, null, value); |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Create an instance of {@link JAXBElement }{@code <}{@link RpcResponseType }{@code >} |
| 188 | * |
| 189 | * @param value |
| 190 | * Java instance representing xml element's value. |
| 191 | * @return |
| 192 | * the new instance of {@link JAXBElement }{@code <}{@link RpcResponseType }{@code >} |
| 193 | */ |
| 194 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "rpcResponse") |
| 195 | public JAXBElement<RpcResponseType> createRpcResponse(RpcResponseType value) { |
| 196 | return new JAXBElement<RpcResponseType>(_RpcResponse_QNAME, RpcResponseType.class, null, value); |
| 197 | } |
| 198 | |
| 199 | /** |
| 200 | * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 201 | * |
| 202 | * @param value |
| 203 | * Java instance representing xml element's value. |
| 204 | * @return |
| 205 | * the new instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 206 | */ |
| 207 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "bad-attribute", scope = ErrorInfoType.class) |
| 208 | public JAXBElement<QName> createErrorInfoTypeBadAttribute(QName value) { |
| 209 | return new JAXBElement<QName>(_ErrorInfoTypeBadAttribute_QNAME, QName.class, ErrorInfoType.class, value); |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 214 | * |
| 215 | * @param value |
| 216 | * Java instance representing xml element's value. |
| 217 | * @return |
| 218 | * the new instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 219 | */ |
| 220 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "bad-element", scope = ErrorInfoType.class) |
| 221 | public JAXBElement<QName> createErrorInfoTypeBadElement(QName value) { |
| 222 | return new JAXBElement<QName>(_ErrorInfoTypeBadElement_QNAME, QName.class, ErrorInfoType.class, value); |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 227 | * |
| 228 | * @param value |
| 229 | * Java instance representing xml element's value. |
| 230 | * @return |
| 231 | * the new instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 232 | */ |
| 233 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "ok-element", scope = ErrorInfoType.class) |
| 234 | public JAXBElement<QName> createErrorInfoTypeOkElement(QName value) { |
| 235 | return new JAXBElement<QName>(_ErrorInfoTypeOkElement_QNAME, QName.class, ErrorInfoType.class, value); |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 240 | * |
| 241 | * @param value |
| 242 | * Java instance representing xml element's value. |
| 243 | * @return |
| 244 | * the new instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 245 | */ |
| 246 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "err-element", scope = ErrorInfoType.class) |
| 247 | public JAXBElement<QName> createErrorInfoTypeErrElement(QName value) { |
| 248 | return new JAXBElement<QName>(_ErrorInfoTypeErrElement_QNAME, QName.class, ErrorInfoType.class, value); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 253 | * |
| 254 | * @param value |
| 255 | * Java instance representing xml element's value. |
| 256 | * @return |
| 257 | * the new instance of {@link JAXBElement }{@code <}{@link QName }{@code >} |
| 258 | */ |
| 259 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "noop-element", scope = ErrorInfoType.class) |
| 260 | public JAXBElement<QName> createErrorInfoTypeNoopElement(QName value) { |
| 261 | return new JAXBElement<QName>(_ErrorInfoTypeNoopElement_QNAME, QName.class, ErrorInfoType.class, value); |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} |
| 266 | * |
| 267 | * @param value |
| 268 | * Java instance representing xml element's value. |
| 269 | * @return |
| 270 | * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} |
| 271 | */ |
| 272 | @XmlElementDecl(namespace = "urn:ietf:params:xml:ns:netconf:base:1.0", name = "bad-namespace", scope = ErrorInfoType.class) |
| 273 | public JAXBElement<String> createErrorInfoTypeBadNamespace(String value) { |
| 274 | return new JAXBElement<String>(_ErrorInfoTypeBadNamespace_QNAME, String.class, ErrorInfoType.class, value); |
| 275 | } |
| 276 | |
| 277 | } |