Changeset 5150
- Timestamp:
- 2003-08-18T13:53:26+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/MetadataXML.java
r5104 r5150 53 53 import org.greenstone.gatherer.valuetree.GValueModel; 54 54 import org.greenstone.gatherer.valuetree.GValueNode; 55 import org.greenstone.gatherer.valuetree.GValueTree; 55 56 import org.w3c.dom.Element; 56 57 … … 97 98 } 98 99 */ 100 101 /** 99 102 public static void write(Gatherer gatherer, String etc_dir) { 100 103 if(gatherer != null && gatherer.c_man != null && gatherer.c_man.getCollection() != null && gatherer.c_man.getCollection().msm != null) { … … 114 117 } 115 118 } 119 */ 116 120 117 121 private String getHIndex(Gatherer gatherer, GValueModel model, String value) { … … 120 124 if(index == null) { 121 125 index = model.getHIndex(value); 122 126 ///ystem.err.println("Adding to known indexes: " + value + " -> " + index); 123 127 known_indexes.put(value, index); 124 128 } … … 144 148 } 145 149 146 static public void write( GValueModel model, MetadataSetManager msm, String etc_dir) {150 static public void write(ElementWrapper element, GValueModel model, MetadataSetManager msm, String etc_dir) { 147 151 try { 148 File out_file = new File(etc_dir + model.toString() + ".txt");152 File out_file = new File(etc_dir + element.getName() + ".txt"); 149 153 FileOutputStream fos = new FileOutputStream(out_file); 150 154 OutputStreamWriter osw = new OutputStreamWriter(fos);
Note:
See TracChangeset
for help on using the changeset viewer.