KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > fileextraction > ExtractedDocument


1 package org.jahia.services.fileextraction;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.HashMap JavaDoc;
5
6 /**
7  *
8  * @author hollis
9  */

10 public interface ExtractedDocument extends Serializable JavaDoc {
11
12     public abstract void setContent(String JavaDoc content);
13     
14     public abstract void setProperties(HashMap JavaDoc properties);
15     
16     public abstract void setProperty(String JavaDoc name, Object JavaDoc[] values);
17
18     public abstract void setProperty(String JavaDoc name, Object JavaDoc value);
19     
20     /**
21      *
22      * @return returns the main content as tring
23      */

24     public abstract String JavaDoc getContentAsString();
25     
26     /**
27      *
28      * @return the additional extracted properties
29      */

30     public abstract HashMap JavaDoc getProperties();
31
32     /**
33      *
34      * @return the values of properties as a String Array
35      */

36     public abstract String JavaDoc[] getPropertiesAsStrings(String JavaDoc name);
37
38 }
39
Popular Tags