Changeset 4009


Ignore:
Timestamp:
2003-03-26T16:17:24+12:00 (21 years ago)
Author:
mdewsnip
Message:

Added couple of things for GATE.

File:
1 edited

Legend:

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

    r3993 r4009  
    132132    public static final String SERVICE_TYPE_APPLET = "applet";
    133133    public static final String SERVICE_TYPE_PROCESS = "process";
     134    public static final String SERVICE_TYPE_ENRICH = "enrich";
    134135
    135136    // configure types
     
    198199    return val;
    199200    }
    200    
     201
    201202    /** extracts the text out of a node */
    202     public static String getNodeText(Element param) {
     203    public static Node getNodeTextNode(Element param) {
    203204    param.normalize();
    204205    Node n = param.getFirstChild();
     
    206207        n=n.getNextSibling();
    207208    }
    208     if (n==null) { // no text node
    209         return "";
    210     }
    211     return n.getNodeValue();
     209    return n;
     210    }
     211   
     212    /** extracts the text out of a node */
     213    public static String getNodeText(Element param) {
     214    return getNodeTextNode(param).getNodeValue();
    212215    }
    213216
Note: See TracChangeset for help on using the changeset viewer.