Changeset 28965 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/AbstractBasicDocument.java
- Timestamp:
- 2014-04-10T14:38:22+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/AbstractBasicDocument.java
r26269 r28965 34 34 35 35 /** XML element for describe requests - the container doc */ 36 protected Document doc = null; // typically a shared reference to the one in ServiceRack36 //protected Document doc = null; // typically a shared reference to the one in ServiceRack 37 37 38 38 static Logger logger = Logger.getLogger(org.greenstone.gsdl3.util.AbstractBasicDocument.class.getName()); 39 39 40 public AbstractBasicDocument( Document doc)40 public AbstractBasicDocument() 41 41 { 42 this.doc = doc;43 42 } 44 43 … … 47 46 * <docNode nodeId='xxx' nodeType='leaf' docType='hierarchy'/> 48 47 */ 49 public Element createDocNode( String node_id) {50 return createDocNode( node_id, null);48 public Element createDocNode(Document doc, String node_id) { 49 return createDocNode(doc, node_id, null); 51 50 } 52 51 /** create an element to go into a results list. A node element … … 54 53 * <docNode nodeId='xxx' nodeType='leaf' docType='hierarchy' [rank='0.23']/> 55 54 */ 56 public Element createDocNode(String node_id, String rank) {57 Element node = this.doc.createElement(GSXML.DOC_NODE_ELEM);55 public Element createDocNode(Document doc, String node_id, String rank) { 56 Element node = doc.createElement(GSXML.DOC_NODE_ELEM); 58 57 node.setAttribute(GSXML.NODE_ID_ATT, node_id); 59 58 if (rank != null) {
Note:
See TracChangeset
for help on using the changeset viewer.