| /* |
| * 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 java.util.HashMap; |
| import java.util.Map; |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlAnyAttribute; |
| import javax.xml.bind.annotation.XmlAttribute; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlType; |
| import javax.xml.namespace.QName; |
| |
| |
| /** |
| * <p>Java class for rpcType complex type. |
| * |
| * <p>The following schema fragment specifies the expected content contained within this class. |
| * |
| * <pre> |
| * <complexType name="rpcType"> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <sequence> |
| * <element ref="{urn:ietf:params:xml:ns:netconf:base:1.0}rpcOperation"/> |
| * </sequence> |
| * <attribute name="message-id" use="required" type="{urn:ietf:params:xml:ns:netconf:base:1.0}messageIdType" /> |
| * <anyAttribute processContents='lax'/> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "rpcType", propOrder = { |
| "rpcOperation" |
| }) |
| public class RpcType { |
| |
| @XmlElement(required = true) |
| protected RpcOperationType rpcOperation; |
| @XmlAttribute(name = "message-id", required = true) |
| protected String messageId; |
| @XmlAnyAttribute |
| private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
| |
| /** |
| * Gets the value of the rpcOperation property. |
| * |
| * @return |
| * possible object is |
| * {@link RpcOperationType } |
| * |
| */ |
| public RpcOperationType getRpcOperation() { |
| return rpcOperation; |
| } |
| |
| /** |
| * Sets the value of the rpcOperation property. |
| * |
| * @param value |
| * allowed object is |
| * {@link RpcOperationType } |
| * |
| */ |
| public void setRpcOperation(RpcOperationType value) { |
| this.rpcOperation = value; |
| } |
| |
| /** |
| * Gets the value of the messageId property. |
| * |
| * @return |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getMessageId() { |
| return messageId; |
| } |
| |
| /** |
| * Sets the value of the messageId property. |
| * |
| * @param value |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setMessageId(String value) { |
| this.messageId = value; |
| } |
| |
| /** |
| * Gets a map that contains attributes that aren't bound to any typed property on this class. |
| * |
| * <p> |
| * the map is keyed by the name of the attribute and |
| * the value is the string value of the attribute. |
| * |
| * the map returned by this method is live, and you can add new attribute |
| * by updating the map directly. Because of this design, there's no setter. |
| * |
| * |
| * @return |
| * always non-null |
| */ |
| public Map<QName, String> getOtherAttributes() { |
| return otherAttributes; |
| } |
| |
| } |