2 * Copyright (c) 2013 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.yangtools.yang.common;
10 import java.util.Collection;
13 * Represents a general result of a call, request, or operation.
15 * @param <T> the result value type
18 public interface RpcResult<T> {
21 * Returns whether or not processing of the call was successful.
23 * @return true if processing was successful, false otherwise.
25 boolean isSuccessful();
28 * Returns the value result of the call or null if no result is available.
33 * Returns a set of errors and warnings which occurred during processing
36 * @return a Collection of {@link RpcError}
38 Collection<RpcError> getErrors();