| /* |
| * Copyright 2018-present Open Networking Foundation |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| * use this file except in compliance with the License. You may obtain a copy |
| * of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| * License for the specific language governing permissions and limitations under |
| * the License. |
| */ |
| // CHECKSTYLE:OFF |
| |
| package org.onosproject.netconf.rpc; |
| |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlAttribute; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlSchemaType; |
| import javax.xml.bind.annotation.XmlType; |
| import javax.xml.bind.annotation.XmlValue; |
| |
| |
| /** |
| * <p>Java class for rpcErrorType complex type. |
| * |
| * <p>The following schema fragment specifies the expected content contained within this class. |
| * |
| * <pre> |
| * <complexType name="rpcErrorType"> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <sequence> |
| * <element name="error-type" type="{urn:ietf:params:xml:ns:netconf:base:1.0}ErrorType"/> |
| * <element name="error-tag" type="{urn:ietf:params:xml:ns:netconf:base:1.0}ErrorTag"/> |
| * <element name="error-severity" type="{urn:ietf:params:xml:ns:netconf:base:1.0}ErrorSeverity"/> |
| * <element name="error-app-tag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| * <element name="error-path" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| * <element name="error-message" minOccurs="0"> |
| * <complexType> |
| * <simpleContent> |
| * <extension base="<http://www.w3.org/2001/XMLSchema>string"> |
| * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> |
| * </extension> |
| * </simpleContent> |
| * </complexType> |
| * </element> |
| * <element name="error-info" type="{urn:ietf:params:xml:ns:netconf:base:1.0}errorInfoType" minOccurs="0"/> |
| * </sequence> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "rpcErrorType", propOrder = { |
| "errorType", |
| "errorTag", |
| "errorSeverity", |
| "errorAppTag", |
| "errorPath", |
| "errorMessage", |
| "errorInfo" |
| }) |
| public class RpcErrorType { |
| |
| @XmlElement(name = "error-type", required = true) |
| @XmlSchemaType(name = "string") |
| protected ErrorType errorType; |
| @XmlElement(name = "error-tag", required = true) |
| @XmlSchemaType(name = "string") |
| protected ErrorTag errorTag; |
| @XmlElement(name = "error-severity", required = true) |
| @XmlSchemaType(name = "string") |
| protected ErrorSeverity errorSeverity; |
| @XmlElement(name = "error-app-tag") |
| protected String errorAppTag; |
| @XmlElement(name = "error-path") |
| protected String errorPath; |
| @XmlElement(name = "error-message") |
| protected RpcErrorType.ErrorMessage errorMessage; |
| @XmlElement(name = "error-info") |
| protected ErrorInfoType errorInfo; |
| |
| /** |
| * Gets the value of the errorType property. |
| * |
| * @return |
| * possible object is |
| * {@link ErrorType } |
| * |
| */ |
| public ErrorType getErrorType() { |
| return errorType; |
| } |
| |
| /** |
| * Sets the value of the errorType property. |
| * |
| * @param value |
| * allowed object is |
| * {@link ErrorType } |
| * |
| */ |
| public void setErrorType(ErrorType value) { |
| this.errorType = value; |
| } |
| |
| /** |
| * Gets the value of the errorTag property. |
| * |
| * @return |
| * possible object is |
| * {@link ErrorTag } |
| * |
| */ |
| public ErrorTag getErrorTag() { |
| return errorTag; |
| } |
| |
| /** |
| * Sets the value of the errorTag property. |
| * |
| * @param value |
| * allowed object is |
| * {@link ErrorTag } |
| * |
| */ |
| public void setErrorTag(ErrorTag value) { |
| this.errorTag = value; |
| } |
| |
| /** |
| * Gets the value of the errorSeverity property. |
| * |
| * @return |
| * possible object is |
| * {@link ErrorSeverity } |
| * |
| */ |
| public ErrorSeverity getErrorSeverity() { |
| return errorSeverity; |
| } |
| |
| /** |
| * Sets the value of the errorSeverity property. |
| * |
| * @param value |
| * allowed object is |
| * {@link ErrorSeverity } |
| * |
| */ |
| public void setErrorSeverity(ErrorSeverity value) { |
| this.errorSeverity = value; |
| } |
| |
| /** |
| * Gets the value of the errorAppTag property. |
| * |
| * @return |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getErrorAppTag() { |
| return errorAppTag; |
| } |
| |
| /** |
| * Sets the value of the errorAppTag property. |
| * |
| * @param value |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setErrorAppTag(String value) { |
| this.errorAppTag = value; |
| } |
| |
| /** |
| * Gets the value of the errorPath property. |
| * |
| * @return |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getErrorPath() { |
| return errorPath; |
| } |
| |
| /** |
| * Sets the value of the errorPath property. |
| * |
| * @param value |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setErrorPath(String value) { |
| this.errorPath = value; |
| } |
| |
| /** |
| * Gets the value of the errorMessage property. |
| * |
| * @return |
| * possible object is |
| * {@link RpcErrorType.ErrorMessage } |
| * |
| */ |
| public RpcErrorType.ErrorMessage getErrorMessage() { |
| return errorMessage; |
| } |
| |
| /** |
| * Sets the value of the errorMessage property. |
| * |
| * @param value |
| * allowed object is |
| * {@link RpcErrorType.ErrorMessage } |
| * |
| */ |
| public void setErrorMessage(RpcErrorType.ErrorMessage value) { |
| this.errorMessage = value; |
| } |
| |
| /** |
| * Gets the value of the errorInfo property. |
| * |
| * @return |
| * possible object is |
| * {@link ErrorInfoType } |
| * |
| */ |
| public ErrorInfoType getErrorInfo() { |
| return errorInfo; |
| } |
| |
| /** |
| * Sets the value of the errorInfo property. |
| * |
| * @param value |
| * allowed object is |
| * {@link ErrorInfoType } |
| * |
| */ |
| public void setErrorInfo(ErrorInfoType value) { |
| this.errorInfo = value; |
| } |
| |
| |
| /** |
| * <p>Java class for anonymous complex type. |
| * |
| * <p>The following schema fragment specifies the expected content contained within this class. |
| * |
| * <pre> |
| * <complexType> |
| * <simpleContent> |
| * <extension base="<http://www.w3.org/2001/XMLSchema>string"> |
| * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> |
| * </extension> |
| * </simpleContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "", propOrder = { |
| "value" |
| }) |
| public static class ErrorMessage { |
| |
| @XmlValue |
| protected String value; |
| @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") |
| protected String lang; |
| |
| /** |
| * Gets the value of the value property. |
| * |
| * @return |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getValue() { |
| return value; |
| } |
| |
| /** |
| * Sets the value of the value property. |
| * |
| * @param value |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setValue(String value) { |
| this.value = value; |
| } |
| |
| /** |
| * Gets the value of the lang property. |
| * |
| * @return |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getLang() { |
| return lang; |
| } |
| |
| /** |
| * Sets the value of the lang property. |
| * |
| * @param value |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setLang(String value) { |
| this.lang = value; |
| } |
| |
| } |
| |
| } |