1 28 29 package com.caucho.xsl; 30 31 import javax.xml.transform.Source ; 32 import java.io.File ; 33 34 37 public class StringSource implements Source { 38 41 public static final String FEATURE = "stringsource"; 42 43 46 private String string; 47 48 51 private String systemId; 52 53 56 private String publicId; 57 58 61 public StringSource() 62 { 63 } 64 65 70 public StringSource(String source) 71 { 72 this.string = source; 73 } 74 75 81 public StringSource(String source, String systemId) 82 { 83 this.string = source; 84 this.systemId = systemId; 85 } 86 87 90 public String getString() 91 { 92 return string; 93 } 94 95 98 public void setString(String is) 99 { 100 this.string = is; 101 } 102 103 106 public String getSystemId() 107 { 108 return systemId; 109 } 110 111 114 public void setSystemId(String systemId) 115 { 116 this.systemId = systemId; 117 } 118 119 122 public void setSystemId(File file) 123 { 124 this.systemId = file.toString(); 125 } 126 127 130 public String getPublicId() 131 { 132 return publicId; 133 } 134 135 138 public void setPublicId(String publicId) 139 { 140 this.publicId = publicId; 141 } 142 } 143 | Popular Tags |