Ignore:
Timestamp:
2002-07-06T14:25:01+12:00 (22 years ago)
Author:
say1
Message:

added GNU headers to all java files. added @author and @version tags. added a fair number of javadoc comments (but not as many as I probably should).

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/service
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/MGGDBMService.java

    r3222 r3235  
     1/*
     2 *    MGGDBMService.java
     3 *    Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
     4 *
     5 *    This program is free software; you can redistribute it and/or modify
     6 *    it under the terms of the GNU General Public License as published by
     7 *    the Free Software Foundation; either version 2 of the License, or
     8 *    (at your option) any later version.
     9 *
     10 *    This program is distributed in the hope that it will be useful,
     11 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *    GNU General Public License for more details.
     14 *
     15 *    You should have received a copy of the GNU General Public License
     16 *    along with this program; if not, write to the Free Software
     17 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18 */
    119package org.greenstone.gsdl3.service;
    220
     
    624import org.w3c.dom.Element;
    725import org.w3c.dom.NodeList;
     26/**
     27 *
     28 * @author <a href="mailto:[email protected]">Katherine Don</a>
     29 * @version $Revision$
     30 */
    831
    9  
    1032public class MGGDBMService
    1133    extends ServiceModule {
     
    2648    return null;
    2749    }
    28    
     50  /** configure this service */
    2951    public boolean configure(Element info) {
    3052
     
    6991    return true;
    7092    }
    71    
     93  /** process a text query */
    7294    protected Element processTextQuery(Element request) {
    7395    Element result = doc_.createElement("response");
     
    81103    }
    82104
     105  /** retrieve a document */
    83106    protected Element processDocRetrieve(Element request) {
    84107    Element result = doc_.createElement("response");
     
    92115    }
    93116
     117  /** retrieve metadata */
    94118    protected Element processMetadataRetrieve(Element request) {
    95119    Element result = doc_.createElement("response");
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/MGPPService.java

    r3222 r3235  
     1/*
     2 *    MGPPService.java
     3 *    Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
     4 *
     5 *    This program is free software; you can redistribute it and/or modify
     6 *    it under the terms of the GNU General Public License as published by
     7 *    the Free Software Foundation; either version 2 of the License, or
     8 *    (at your option) any later version.
     9 *
     10 *    This program is distributed in the hope that it will be useful,
     11 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *    GNU General Public License for more details.
     14 *
     15 *    You should have received a copy of the GNU General Public License
     16 *    along with this program; if not, write to the Free Software
     17 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18 */
    119package org.greenstone.gsdl3.service;
    220
     
    624import org.w3c.dom.Element;
    725import org.w3c.dom.NodeList;
     26/**
     27 * A Service class for MGPP
     28 *
     29 * @author <a href="mailto:[email protected]">Katherine Don</a>
     30 * @version $Revision$
     31 */
    832
    933
     
    3256   
    3357
     58    /** confifure this service */
    3459    public boolean configure(Element info) {
    3560
     
    83108    }
    84109
     110    /** process a text query */
    85111    protected Element processTextQuery(Element request) {
    86112    Element result = doc_.createElement("response");
     
    94120    }
    95121
     122    /** process a fielded query */
    96123    protected Element processFieldQuery(Element request) {
    97124    Element result = doc_.createElement("response");
     
    105132    }
    106133
     134    /** retrieve a document */
    107135    protected Element processDocRetrieve(Element request) {
    108136    Element result = doc_.createElement("response");
     
    116144    }
    117145
     146    /** retrieve metadata */
    118147    protected Element processMetadataRetrieve(Element request) {
    119148    Element result = doc_.createElement("response");
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindService.java

    r3222 r3235  
     1/*
     2 *    PhindService.java
     3 *    Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
     4 *
     5 *    This program is free software; you can redistribute it and/or modify
     6 *    it under the terms of the GNU General Public License as published by
     7 *    the Free Software Foundation; either version 2 of the License, or
     8 *    (at your option) any later version.
     9 *
     10 *    This program is distributed in the hope that it will be useful,
     11 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *    GNU General Public License for more details.
     14 *
     15 *    You should have received a copy of the GNU General Public License
     16 *    along with this program; if not, write to the Free Software
     17 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18 */
    119package org.greenstone.gsdl3.service;
    220
     
    624import org.w3c.dom.Text;
    725
    8 /** PhindService - the phind phrase browsing service
     26/**
     27 * PhindService - the phind phrase browsing service
    928 *
     29 * @author <a href="mailto:[email protected]">Katherine Don</a>
     30 * @version $Revision$
    1031 */
    1132public class PhindService
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/ServiceModule.java

    r3222 r3235  
     1/*
     2 *    ServiceModule.java
     3 *    Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
     4 *
     5 *    This program is free software; you can redistribute it and/or modify
     6 *    it under the terms of the GNU General Public License as published by
     7 *    the Free Software Foundation; either version 2 of the License, or
     8 *    (at your option) any later version.
     9 *
     10 *    This program is distributed in the hope that it will be useful,
     11 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 *    GNU General Public License for more details.
     14 *
     15 *    You should have received a copy of the GNU General Public License
     16 *    along with this program; if not, write to the Free Software
     17 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18 */
    119package org.greenstone.gsdl3.service;
    220
     
    2644 * MGGDBMServiceModule may support "DocRetrieve", "TextQuery", "MetadataRetrieve" services
    2745 *
     46 * @author <a href="mailto:[email protected]">Katherine Don</a>
     47 * @version $Revision$
    2848 */
    2949public abstract class ServiceModule
     
    5272    protected HashMap service_info_map_ = null;
    5373
     74    /** sets the collect name */
    5475    public void setCollectionName(String coll_name) {
    5576    collection_name_ = coll_name;
    5677    }
    5778   
     79    /** sets the site home */
    5880    public void setSiteHome(String site_home) {
    5981    site_home_ = site_home;
    6082    }
    6183
     84    /** sets the message router */
    6285    public void setMessageRouter(ModuleInterface m) {
    6386       router_ = m;
    6487    }
    6588
     89    /** the no-args constructor */
    6690    public ServiceModule() {
    6791    converter_ = new XMLConverter();
Note: See TracChangeset for help on using the changeset viewer.