Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / FakeModuleImport.java
index 8d781e88c537541577e1b85a08d974ddccc7b5a7..aae1e039c1dd261bca087f5d5cdee2743f86852a 100644 (file)
@@ -8,12 +8,14 @@
 package org.opendaylight.netconf.sal.restconf.impl;
 
 import com.google.common.base.Preconditions;
-import java.util.Date;
+import java.util.Optional;
+import org.opendaylight.yangtools.concepts.SemVer;
+import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.ModuleImport;
 
 /**
- * Fake {@link ModuleImport} implementation used to attach corrent prefix mapping to fake RPCs.
+ * Fake {@link ModuleImport} implementation used to attach current prefix mapping to fake RPCs.
  *
  * @author Robert Varga
  */
@@ -30,7 +32,7 @@ final class FakeModuleImport implements ModuleImport {
     }
 
     @Override
-    public Date getRevision() {
+    public Optional<Revision> getRevision() {
         return module.getRevision();
     }
 
@@ -38,4 +40,19 @@ final class FakeModuleImport implements ModuleImport {
     public String getPrefix() {
         return module.getName();
     }
+
+    @Override
+    public Optional<String> getDescription() {
+        return module.getDescription();
+    }
+
+    @Override
+    public Optional<String> getReference() {
+        return module.getReference();
+    }
+
+    @Override
+    public Optional<SemVer> getSemanticVersion() {
+        return module.getSemanticVersion();
+    }
 }