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;
14 * Result of call to YANG enabled system.
17 * @param <T> Return type
19 public interface RpcResult<T> {
22 * True if processing of request was successful
24 * @return true if processing was successful.
26 boolean isSuccessful();
30 * Returns result of call or null if no result is available.
32 * @return result of call or null if no result is available.
39 * Returns set of errors and warnings which occured during processing
44 Collection<RpcError> getErrors();