Fix license header violations in yang-model-util
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / repo / SchemaSourceProvider.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.util.repo;
9
10 import com.google.common.base.Optional;
11
12 /**
13  * Provider of text stream representation of YANG Modules
14  *
15  * Provider is holder / user implemented service, which
16  * may be able to retrieve representation of YANG sources
17  * for other components.
18  *
19  * @param <F> Format in which YANG source is represented.
20  * @deprecated Repalced With {@link AdvancedSchemaSourceProvider}
21  */
22 @Deprecated
23 public interface SchemaSourceProvider<F> {
24
25     /**
26      * Returns source for supplied YANG module identifier and revision.
27      *
28      * @param moduleName module name
29      * @param revision revision of module
30      * @return source representation if supplied YANG module is available
31      *  {@link Optional#absent()} otherwise.
32      *  @deprecated Use {@link AdvancedSchemaSourceProvider#getSchemaSource(SourceIdentifier)}
33      *     instead.
34      */
35     @Deprecated
36     Optional<F> getSchemaSource(String moduleName, Optional<String> revision);
37
38 }