Improve yang-maven-plugin error reporting for errors in dependencies
[yangtools.git] / yang / yang-maven-plugin / src / main / java / org / opendaylight / yangtools / yang2sources / plugin / YangSourceFromDependency.java
index 6a531534df6331de104fc451adedc1ecf1c18360..009382bfc799311c46c652fe66ad4a0bed2dd619 100644 (file)
@@ -10,4 +10,16 @@ package org.opendaylight.yangtools.yang2sources.plugin;
 import com.google.common.io.ByteSource;
 
 abstract class YangSourceFromDependency extends ByteSource {
+
+    /**
+     * Return a description for this dependency, to be used for error output when
+     * working with the dependency.
+     */
+    abstract String getDescription();
+
+    @Override
+    public final String toString() {
+        return getDescription();
+    }
+
 }