2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.dom.spi;
10 import org.opendaylight.mdsal.dom.api.DOMRpcResult;
12 import com.google.common.collect.ForwardingObject;
13 import java.util.Collection;
14 import javax.annotation.Nonnull;
15 import org.opendaylight.yangtools.yang.common.RpcError;
16 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
19 * Utility class which implements {@link DOMRpcResult} by forwarding all methods
20 * to a backing instance.
22 public abstract class ForwardingDOMRpcResult extends ForwardingObject implements DOMRpcResult {
24 protected abstract @Nonnull DOMRpcResult delegate();
27 public Collection<RpcError> getErrors() {
28 return delegate().getErrors();
32 public NormalizedNode<?, ?> getResult() {
33 return delegate().getResult();