Ignore:
Timestamp:
2005-05-04T16:15:31+12:00 (19 years ago)
Author:
kjdon
Message:

some methods from documentretrieve classes now throw GSExceptions. am trying to make it so that no Exceptions get to the user interface. returning a lot more error elements too, in the hope that they may be useful for other people

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS3DocumentRetrieve.java

    r9000 r9815  
    2020
    2121// Greenstone classes
     22import org.greenstone.gsdl3.core.GSException;
    2223import org.greenstone.gsdl3.util.GSXML;
    2324import org.greenstone.gsdl3.util.GSFile;
     
    109110    }
    110111   
    111     /** if an id is not a greenstone id (an external id) then translate
    112     it to a greenstone one*/
    113     protected String translateExternalId(String node_id){
    114     // dont have this yet
    115     return node_id;
    116     }
    117 
    118112    /** returns the id of the root node of the document containing node node_id. . may be the same as node_id */
    119113    protected String getRootId(String node_id) {
     
    150144    // assumes only one value per metadata
    151145    protected Element getMetadataList(String node_id, boolean all_metadata,
    152                       ArrayList metadata_names) {
     146                      ArrayList metadata_names)   
     147    throws GSException {
    153148    Element metadata_list = this.doc.createElement(GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER);
    154149
     
    215210     * <nodeContent>text content or other elements</nodeContent>
    216211     */
    217     abstract protected Element getNodeContent(String doc_id);
     212    abstract protected Element getNodeContent(String doc_id) throws GSException;
    218213
    219214}   
Note: See TracChangeset for help on using the changeset viewer.