From e8058acccfc094f9718be0687a687fb5e690da55 Mon Sep 17 00:00:00 2001 From: Tony Tkacik Date: Tue, 14 Jan 2014 12:43:45 +0100 Subject: [PATCH] Added YangModuleInfo interface. Signed-off-by: Tony Tkacik --- .../yang/binding/YangModuleInfo.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/YangModuleInfo.java diff --git a/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/YangModuleInfo.java b/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/YangModuleInfo.java new file mode 100644 index 0000000000..90dc06b33c --- /dev/null +++ b/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/YangModuleInfo.java @@ -0,0 +1,42 @@ +/* + * 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.yangtools.yang.binding; + +import java.io.IOException; +import java.io.InputStream; + +import com.google.common.collect.ImmutableSet; + +public interface YangModuleInfo { + + /** + * Returns yang module name + * + * @return + */ + String getName(); + + /** + * + * Returns revision of yang module. + * + * @return + */ + String getRevision(); + + /** + * Returns XML namespace associated to the YANG module + * + * @return XML namespace associated to the YANG module. + */ + String getNamespace(); + + InputStream getModuleSourceStream() throws IOException; + + ImmutableSet getImportedModules(); +} -- 2.36.6