1 17 package org.apache.forrest.sourcetype; 18 19 import java.util.HashMap ; 20 21 28 public class SourceInfo 29 { 30 protected String publicId; 31 protected String documentElementLocalName; 32 protected String documentElementNamespace; 33 protected String xsiSchemaLocation; 34 protected String xsiNoNamespaceSchemaLocation; 35 protected HashMap processingInstructions = new HashMap (); 36 37 public String getPublicId() 38 { 39 return publicId; 40 } 41 42 public void setPublicId(String publicId) 43 { 44 this.publicId = publicId; 45 } 46 47 public String getDocumentElementLocalName() 48 { 49 return documentElementLocalName; 50 } 51 52 public void setDocumentElementLocalName(String documentElementLocalName) 53 { 54 this.documentElementLocalName = documentElementLocalName; 55 } 56 57 public String getDocumentElementNamespace() 58 { 59 return documentElementNamespace; 60 } 61 62 public void setDocumentElementNamespace(String documentElementNamespace) 63 { 64 this.documentElementNamespace = documentElementNamespace; 65 } 66 67 public String getXsiSchemaLocation() 68 { 69 return xsiSchemaLocation; 70 } 71 72 public void setXsiSchemaLocation(String xsiSchemaLocation) 73 { 74 this.xsiSchemaLocation = xsiSchemaLocation; 75 } 76 77 public String getXsiNoNamespaceSchemaLocation() 78 { 79 return xsiNoNamespaceSchemaLocation; 80 } 81 82 public void setXsiNoNamespaceSchemaLocation(String xsiNoNamespaceSchemaLocation) 83 { 84 this.xsiNoNamespaceSchemaLocation = xsiNoNamespaceSchemaLocation; 85 } 86 87 public void addProcessingInstruction(String target, String data) 88 { 89 processingInstructions.put(target, data); 90 } 91 92 public boolean hasProcessingInstruction(String target) 93 { 94 return processingInstructions.containsKey(target); 95 } 96 97 public String getProcessingInstructionData(String target) 98 { 99 return (String )processingInstructions.get(target); 100 } 101 } 102 | Popular Tags |