Added YangModuleInfo interface.
authorTony Tkacik <ttkacik@cisco.com>
Tue, 14 Jan 2014 11:43:45 +0000 (12:43 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Tue, 14 Jan 2014 11:43:45 +0000 (12:43 +0100)
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/YangModuleInfo.java [new file with mode: 0644]

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 (file)
index 0000000..90dc06b
--- /dev/null
@@ -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<YangModuleInfo> getImportedModules();
+}