* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.topology.singleton.messages.rpc;
import java.io.Externalizable;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
+import org.eclipse.jdt.annotation.Nullable;
import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
import org.opendaylight.netconf.topology.singleton.messages.SchemaPathMessage;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
public class InvokeRpcMessage implements Serializable {
private static final long serialVersionUID = 1L;
private final NormalizedNodeMessage normalizedNodeMessage;
public InvokeRpcMessage(final SchemaPathMessage schemaPathMessage,
- final NormalizedNodeMessage normalizedNodeMessage) {
+ final @Nullable NormalizedNodeMessage normalizedNodeMessage) {
this.schemaPathMessage = schemaPathMessage;
this.normalizedNodeMessage = normalizedNodeMessage;
}
- private SchemaPathMessage getSchemaPathMessage() {
+ SchemaPathMessage getSchemaPathMessage() {
return schemaPathMessage;
}
- public SchemaPath getSchemaPath() {
+ public Absolute getSchemaPath() {
return schemaPathMessage.getSchemaPath();
}
- public NormalizedNodeMessage getNormalizedNodeMessage() {
+ public @Nullable NormalizedNodeMessage getNormalizedNodeMessage() {
return normalizedNodeMessage;
}
return new Proxy(this);
}
+ @Override
+ public String toString() {
+ return "InvokeRpcMessage [schemaPathMessage=" + schemaPathMessage + ", normalizedNodeMessage="
+ + normalizedNodeMessage + "]";
+ }
+
private static class Proxy implements Externalizable {
private static final long serialVersionUID = 2L;
private InvokeRpcMessage invokeRpcMessage;
- Proxy() {
+ @SuppressWarnings("checkstyle:RedundantModifier")
+ public Proxy() {
//due to Externalizable
}