small cached lib fixes
[nikiroo-utils.git] / src / be / nikiroo / fanfix / library / LocalLibrary.java
index d0bf61a44b30453f0972bb3c6c9b99d2588df161..59310fdc4f906b3247efb2b796e887c94666c41b 100644 (file)
@@ -414,6 +414,22 @@ public class LocalLibrary extends BasicLibrary {
                return text;
        }
 
+       /**
+        * Return the default {@link OutputType} for this kind of {@link Story}.
+        * 
+        * @param imageDocument
+        *            TRUE for images document, FALSE for text documents
+        * 
+        * @return the type
+        */
+       public String getOutputType(boolean imageDocument) {
+               if (imageDocument) {
+                       return image.toString();
+               }
+
+               return text.toString();
+       }
+
        /**
         * Get the target {@link File} related to the given <tt>.info</tt>
         * {@link File} and {@link MetaData}.