2 * Copyright (c) 2017 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
9 package org.opendaylight.mdsal.binding2.spec.runtime;
11 import com.google.common.annotations.Beta;
12 import com.google.common.base.Optional;
14 import org.opendaylight.yangtools.concepts.SemVer;
15 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
18 * Provides basic information about YANG module
21 public interface YangModuleInfo {
24 * Returns yang module name
26 * @return YANG module name
31 * Returns revision of yang module.
33 * @return YANG module revision
38 * Returns semantic version of yang module
40 * @return YANG module semantic version
42 Optional<SemVer> getSemanticVersion();
45 * Returns XML namespace associated to the YANG module
47 * @return XML namespace associated to the YANG module.
49 String getNamespace();
52 * Returns set of imported modules
53 * @return set of YangModuleInfo instances
55 Set<YangModuleInfo> getImportedModules();
58 * Transforms YangModuleInfo instance to its source representation
59 * @return YangModuleInfo source representation
61 SchemaSourceRepresentation getModuleSourceRepresentation();