Changeset 6284 for trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/AbstractDocument.java
- Timestamp:
- 2003-12-17T13:08:02+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/AbstractDocument.java
r6101 r6284 13 13 14 14 import org.greenstone.gsdl3.gs3build.metadata.NamespaceFactory; 15 import org.greenstone.gsdl3.gs3build.metadata.StructureIdentifierFactory; 15 16 import org.greenstone.gsdl3.gs3build.metadata.GSDL3Namespace; 16 17 import org.greenstone.gsdl3.gs3build.metadata.METSDescriptiveSet; … … 22 23 import org.greenstone.gsdl3.gs3build.metadata.METSDivision; 23 24 import org.greenstone.gsdl3.gs3build.metadata.METSNamespace; 25 import org.greenstone.gsdl3.gs3build.metadata.MetadataLabel; 24 26 25 27 import org.greenstone.gsdl3.gs3build.util.MultiMap; … … 39 41 DocumentID id; 40 42 boolean isModified; 43 StructureIdentifierFactory structureIdFactory; 41 44 42 45 /** … … 53 56 this.structureSet = new METSStructureSet(); 54 57 this.id = id; 58 this.structureIdFactory = new StructureIdentifierFactory(); 55 59 } 56 60 … … 152 156 * @see DocumentInterface:addDocumentMetadata 153 157 */ 154 public void addDocumentMetadata(String name, String value) 155 { int colonAt = name.indexOf(":"); 156 String namespace; 157 158 if (colonAt > 0) { 159 namespace = name.substring(0, colonAt); 160 name = name.substring(colonAt+1); 161 } 162 else { 163 namespace = GSDL3Namespace.GSDL3_NAMESPACE_ID; 164 } 165 166 // no need to set isModified, as the following call will do it anyway! 167 this.addDocumentMetadata(namespace, name, value); 158 public void addDocumentMetadata(MetadataLabel label, String value) 159 { // no need to set isModified, as the following call will do it anyway! 160 this.addDocumentMetadata(label.getNamespace(), label.getLabel(), value); 168 161 } 169 162 … … 286 279 { this.fileSet = fileSet; 287 280 } 281 282 /** 283 * This is just a dummy function that does nothing at this level... 284 */ 285 public org.w3c.dom.Document getDOMDocument() 286 { return null; 287 } 288 288 289 289 /**
Note:
See TracChangeset
for help on using the changeset viewer.