Changeset 3642
- Timestamp:
- 2003-01-06T12:01:48+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSXML.java
r3618 r3642 25 25 public static final String CONTENT_ELEM = "content"; 26 26 public static final String RESOURCE_ELEM = "resource"; 27 public static final String DOCUMENT_ELEM = "document"; 27 28 public static final String METADATA_ELEM = "metadata"; 28 public static final String SERVICE_ IMPL_ELEM = "servicesImpl";29 public static final String SERVICE_CLASS_ELEM = "serviceRack"; 29 30 public static final String CLASSIFIER_ELEM = "classifier"; 30 31 public static final String APPLET_ELEM = "applet"; … … 59 60 public static final String SUBACTION_ATT = "subaction"; 60 61 public static final String ADDRESS_ATT = "address"; 62 public static final String STATUS_ERROR_CODE_ATT = "code"; 63 public static final String STATUS_PROCESS_ID_ATT = "handle"; 61 64 public static final String PARAM_SHORTNAME_ATT = "shortname"; 62 65 public static final String PARAM_IGNORE_POS_ATT = "ignore"; … … 76 79 public static final String DISPLAY_SUBMIT_ELEM = "submit"; 77 80 78 // request types 81 // request types - do we need all these? or just 82 // describe, status, and one to say do teh request 79 83 public static final String REQUEST_TYPE_DESCRIBE = "describe"; 80 84 public static final String REQUEST_TYPE_CONFIGURE = "configure"; … … 82 86 public static final String REQUEST_TYPE_ACTION = "action"; 83 87 public static final String REQUEST_TYPE_BUILD = "build"; 88 public static final String REQUEST_TYPE_STATUS = "status"; 89 public static final String REQUEST_TYPE_PROCESS = "process"; 84 90 85 91 // service types … … 96 102 // takes a node with a resource elements inside it and extracts all the 97 103 // HASh oids - name att for resource 98 public static String [] get ResourceNameList(Element content) {104 public static String [] getDocumentNameList(Element content) { 99 105 100 106 Node n = content.getFirstChild(); 101 while (n!=null && !n.getNodeName().equals( RESOURCE_ELEM+LIST_MODIFIER)) {107 while (n!=null && !n.getNodeName().equals(DOCUMENT_ELEM+LIST_MODIFIER)) { 102 108 n = n.getNextSibling(); 103 109 } … … 211 217 } 212 218 /** creates a new document Element */ 213 public static Element create ResourceElement(Document owner, String oid) {214 Element e = owner.createElement( RESOURCE_ELEM);219 public static Element createDocumentElement(Document owner, String oid) { 220 Element e = owner.createElement(DOCUMENT_ELEM); 215 221 e.setAttribute(NAME_ATT, oid); 216 222
Note:
See TracChangeset
for help on using the changeset viewer.