X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fsal%2Fsal-core-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fapi%2Fdata%2FDataValidator.java;h=2bcb84be34f375486f4791dab794ff58d168c4d7;hp=a2105b41d7a1ba5e4297c818ea0e770ca7f1d427;hb=2df4e10d93273215c40fe9ce38b0ba6e268e67b3;hpb=42210c03b0a4c54706320ba9f55794c0abd4d201 diff --git a/opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/data/DataValidator.java b/opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/data/DataValidator.java index a2105b41d7..2bcb84be34 100644 --- a/opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/data/DataValidator.java +++ b/opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/data/DataValidator.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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.controller.sal.core.api.data; - -import java.util.Set; - -import org.opendaylight.controller.sal.common.DataStoreIdentifier; -import org.opendaylight.controller.sal.core.api.Provider; -import org.opendaylight.controller.yang.common.RpcResult; -import org.opendaylight.controller.yang.data.api.CompositeNode; - - -/** - * {@link Provider}-supplied Validator of the data. - * - *

- * The registration could be done by : - *

- * - **/ -public interface DataValidator extends Provider.ProviderFunctionality { - - /** - * A set of Data Stores supported by implementation. - * - * The set of {@link DataStoreIdentifier}s which identifies target data - * stores which are supported by this implementation. This set is used, when - * {@link Provider} is registered to the SAL, to register and expose the - * validation functionality to affected data stores. - * - * @return Set of Data Store identifiers - */ - Set getSupportedDataStores(); - - /** - * Performs validation on supplied data. - * - * @param toValidate - * Data to validate - * @return Validation result. The - * {@link RpcResult#isSuccessful()} == true if the data - * passed validation, otherwise contains list of errors. - */ - RpcResult validate(CompositeNode toValidate); - -} +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * 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.controller.sal.core.api.data; + +import java.util.Set; + +import org.opendaylight.controller.sal.common.DataStoreIdentifier; +import org.opendaylight.controller.sal.core.api.Provider; +import org.opendaylight.yangtools.yang.common.RpcResult; +import org.opendaylight.yangtools.yang.data.api.CompositeNode; + + +/** + * {@link Provider}-supplied Validator of the data. + * + *

+ * The registration could be done by : + *

+ * + **/ +public interface DataValidator extends Provider.ProviderFunctionality { + + /** + * A set of Data Stores supported by implementation. + * + * The set of {@link DataStoreIdentifier}s which identifies target data + * stores which are supported by this implementation. This set is used, when + * {@link Provider} is registered to the SAL, to register and expose the + * validation functionality to affected data stores. + * + * @return Set of Data Store identifiers + */ + Set getSupportedDataStores(); + + /** + * Performs validation on supplied data. + * + * @param toValidate + * Data to validate + * @return Validation result. The + * {@link RpcResult#isSuccessful()} == true if the data + * passed validation, otherwise contains list of errors. + */ + RpcResult validate(CompositeNode toValidate); + +}