2 * Copyright (c) 2014 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/eplv10.html
8 package org.opendaylight.yangtools.yang.model.util.repo;
10 import com.google.common.base.Optional;
13 * Provider of text stream representation of YANG Modules
15 * Provider is holder / user implemented service, which
16 * may be able to retrieve representation of YANG sources
17 * for other components.
19 * @param <F> Format in which YANG source is represented.
20 * @deprecated Repalced With {@link AdvancedSchemaSourceProvider}
23 public interface SchemaSourceProvider<F> {
26 * Returns source for supplied YANG module identifier and revision.
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)}
36 Optional<F> getSchemaSource(String moduleName, Optional<String> revision);