Ignore:
Timestamp:
2003-11-24T14:26:35+13:00 (20 years ago)
Author:
cs025
Message:

Index document type, metadata extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/TextDocument.java

    r5800 r5944  
    1515public class TextDocument extends AbstractDocument
    1616{
    17     public static final String TEXT_DOCUMENT_TYPE = "Text";
     17  public static final String TEXT_DOCUMENT_TYPE = "Text";
    1818
    19     public TextDocument(URL url)
    20     {   super(url);
    21     }
     19  public TextDocument(DocumentID id)
     20  { super(id);
     21  }
    2222
    23     public String getDocumentType()
    24     {   return TEXT_DOCUMENT_TYPE;
    25     }
     23  public TextDocument(URL url)
     24  { super(url);
     25  }
    2626
    27     /**
    28      *  A pretty minimal and lazy document text extraction process.
    29      */
    30     public String getDocumentText()
    31     { return DocumentLoader.getAsString((URL) this.fileSet.getFile(0).getLocation());
    32     }
     27  public String getDocumentType()
     28  { return TEXT_DOCUMENT_TYPE;
     29  }
     30
     31  /**
     32   *  A pretty minimal and lazy document text extraction process.
     33   */
     34  public String getDocumentText()
     35  { return DocumentLoader.getAsString((URL) this.fileSet.getFile(0).getLocation());
     36  }
    3337}
Note: See TracChangeset for help on using the changeset viewer.