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
Files:
16 edited

Legend:

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

    r3222 r3235  
     1/*
     2 *    Library1.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;
    220
     
    927 *
    1028 * enter XML queries at the prompt
     29 * @author <a href="mailto:[email protected]">Katherine Don</a>
     30 * @version $Revision$
    1131 */
    1232final public class Library1 {
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/Library2.java

    r3222 r3235  
     1/*
     2 *    Library2.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;
    220
     
    826import java.io.File;
    927import java.io.IOException;
     28/**
     29 * A program to take XML strings from the command line and send
     30 * them to the system.
     31 *
     32 * @author <a href="mailto:[email protected]">Katherine Don</a>
     33 * @version $Revision$
     34 */
    1035final public class Library2 {
    1136
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/SOAPServer.java

    r3222 r3235  
     1/*
     2 *    SOAPServer.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;
    220
    321import org.greenstone.gsdl3.core.*;
    422import org.w3c.dom.Node;
     23/**
     24 * The server side of a SOAP connection
     25 *
     26 * @author <a href="mailto:[email protected]">Katherine Don</a>
     27 * @version $Revision$
     28 * @see <a href="http://www.w3.org/TR/SOAP/">Simple Object Access Protocol (SOAP) 1.1 </a>
     29 */
    530
    631public class SOAPServer
    732    implements ModuleInterface {
    8    
     33 
     34  /** The message router we're talking to */
    935    MessageRouter mr_=null;
    10    
     36 
     37  /** The no-args constructor */
    1138    public SOAPServer() {
    1239    mr_ = new MessageRouter();
     
    1643    }
    1744   
     45  /** Process a request */
    1846    public String process(String xml_in) {
    1947    return mr_.process(xml_in);
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r3222 r3235  
     1/*
     2 *    Collection.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.collection;
    220
     
    2038 * Implements ModuleInterface. Contains a list of services supported by the collection, as well as collection metadata
    2139 *
     40 * @author <a href="mailto:[email protected]">Katherine Don</a>
     41 * @version $Revision$
    2242 * @see ModuleInterface
    2343 */
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/comms/Communicator.java

    r3222 r3235  
     1/*
     2 *    Communicator.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.comms;
    220
     
    927/** Communicator - base class for Modules that talk via some protocol to other modules
    1028 *
     29 * @author <a href="mailto:[email protected]">Katherine Don</a>
     30 * @version $Revision$
    1131 */
    1232abstract public class Communicator
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/comms/SOAPCommunicator.java

    r3222 r3235  
     1/*
     2 *    SOAPCommunicator.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.comms;
    220
     
    2038import org.w3c.dom.Element;
    2139
     40/*
     41 * The Client side of a SOAP Connection
     42 *
     43 * @author <a href="mailto:[email protected]">Katherine Don</a>
     44 * @version $Revision$
     45 * @see <a href="http://www.w3.org/TR/SOAP/">Simple Object Access Protocol (SOAP) 1.1 </a>
     46 */
    2247public class SOAPCommunicator
    2348    extends Communicator {
     
    2550    /** the call object that does the SOAP talking */
    2651    private Call call_ = null;
    27    
     52
     53  /** The no-args constructor */
    2854    public SOAPCommunicator() {
    2955   
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r3229 r3235  
     1/*
     2 *    MessageRouter.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.core;
    220
     
    3048 * objects talking to other MessageRouters etc.
    3149 *
     50 *
     51 * @author <a href="mailto:[email protected]">Katherine Don</a>
     52 * @version $Revision$
    3253 * @see ModuleInterface
    3354 * @see Collection
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/ModuleInterface.java

    r3233 r3235  
     1/*
     2 *    ModuleInterface.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.core;
    220   
    321import org.w3c.dom.Node;                                               
     22
    423/**
    524 * Module interface for all components/modules in greenstone.
     
    1029 * Java modules also implement a convenience process method -
    1130 * uses DOM Nodes instead of Strings - avoids parsing the XML at each module
     31 *
     32 * @author <a href="mailto:[email protected]">Katherine Don</a>
     33 * @version $Revision$
    1234 */
    13 
    1435public interface ModuleInterface {
    1536 
     
    2546  /**
    2647   * Process an XML request - as a DOM model node
    27    * the Node may be an ELement or a Document
     48   * the Node may be an Element or a Document
    2849   *
    2950   * @param in the request to process
  • 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();
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSFile.java

    r3222 r3235  
     1/*
     2 *    GSFile.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.util;
    220
     
    826 * contains File creation methods.
    927 *
     28 * @author <a href="mailto:[email protected]">Katherine Don</a>
     29 * @version $Revision$
    1030 * @see File
    1131 */
     
    4262    }
    4363
     64    /** returns the directory for XML Transforms */
    4465    static public String xmlTransformDir(String gsdl_home) {
    4566    return gsdl_home+File.separatorChar+"transform";
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSPath.java

    r3222 r3235  
     1/*
     2 *    GSPath.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.util;
    220
     
    523 *
    624 * modifies and examines message address paths and names
     25 *
     26 * @author <a href="mailto:[email protected]">Katherine Don</a>
     27 * @version $Revision$
    728 *
    829 */
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/XMLConverter.java

    r3222 r3235  
     1/*
     2 *    XMLConverter.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.util;
    220
     
    2139 * different parsers have different behaviour - can experiment in here
    2240 *
     41 * @author <a href="mailto:[email protected]">Katherine Don</a>
     42 * @version $Revision$
     43 *
    2344 */
    2445public class XMLConverter {
     
    3253    protected DOMParser parser_ = null;
    3354
     55     /** the no-args constructor */
    3456    public XMLConverter() {
    3557    try {
     
    6082    return null;
    6183    }
    62    
     84 
     85    /** returns a DOM Document */
    6386    public Document getDOM(File in) {
    6487    try {
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/XMLTransformer.java

    r3222 r3235  
     1/*
     2 *    XMLTransformer.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.util;
    220
     
    2038 * different parsers have different behaviour - can experiment in here
    2139 *
     40 * @author <a href="mailto:[email protected]">Katherine Don</a>
     41 * @version $Revision$
    2242 */
    2343public class XMLTransformer {
    24 
    25     TransformerFactory t_factory_=null;
    26    
     44  /** The transformer we're using */
     45  TransformerFactory t_factory_=null;
     46 
     47  /**
     48   * The no-arguments constructor.
     49   *
     50   * Any exceptions thrown are caught internally
     51   *
     52   * @return a new transformer
     53   * @see javax.xml.transform.TransformerFactory
     54   */
    2755    public XMLTransformer() {
    2856    try {
     
    3664 
    3765   
     66  /**
     67   * Transform an XML document using a XSLT stylesheet
     68   *
     69   * @param stylesheet an XSLT stylesheet
     70   * @param xml_in the XML to be transformed
     71   * @return the transformed XML
     72   */
    3873    public String transform(String stylesheet, String xml_in) {
    3974   
Note: See TracChangeset for help on using the changeset viewer.