1 55 56 57 package org.jboss.axis.encoding; 58 59 import org.jboss.axis.Message; 60 import org.jboss.axis.MessageContext; 61 import org.w3c.dom.Element ; 62 import org.xml.sax.Attributes ; 63 64 import javax.xml.namespace.QName ; 65 import java.io.IOException ; 66 import java.util.Stack ; 67 68 71 public interface SerializationContext extends javax.xml.rpc.encoding.SerializationContext 72 { 73 74 94 public void serialize(QName elemQName, 95 Attributes attributes, 96 Object value) 97 throws IOException ; 98 99 119 public void serialize(QName elemQName, 120 Attributes attributes, 121 Object value, 122 QName xmlType, 123 boolean sendNull, 124 Boolean sendType) 125 throws IOException ; 126 127 128 135 public Attributes setTypeAttribute(Attributes attributes, QName type); 136 137 144 public Serializer getSerializerForJavaType(Class javaType); 145 146 151 public boolean getPretty(); 152 153 158 public void setPretty(boolean pretty); 159 160 165 public boolean getDoMultiRefs(); 166 167 172 public void setDoMultiRefs(boolean shouldDo); 173 174 179 public void setSendDecl(boolean sendDecl); 180 181 186 public boolean shouldSendXSIType(); 187 188 193 public TypeMapping getTypeMapping(); 194 195 200 public TypeMappingRegistry getTypeMappingRegistry(); 201 202 212 public String getPrefixForURI(String uri); 213 214 225 public String getPrefixForURI(String uri, String defaultPrefix); 226 227 233 public void registerPrefixForURI(String prefix, String uri); 234 235 240 public Message getCurrentMessage(); 241 242 245 public MessageContext getMessageContext(); 246 247 253 public String qName2String(QName qName); 254 255 262 public String attributeQName2String(QName qName); 263 264 270 public QName getQNameForClass(Class cls); 271 272 281 public boolean isPrimitive(Object value); 282 283 288 public void outputMultiRefs() throws IOException ; 289 290 295 public void startDocument() throws IOException ; 296 297 302 public void endDocument() throws IOException ; 303 304 311 public void startElement(QName qName, Attributes attributes) throws IOException ; 312 313 316 public void endElement() throws IOException ; 317 318 326 public void writeChars(char[] p1, int p2, int p3) throws IOException ; 327 328 333 public void writeString(String string) throws IOException ; 334 335 341 public void writeSafeString(String string) throws IOException ; 342 343 348 public void writeDOMElement(Element el) throws IOException ; 349 350 public String getValueAsString(Object value, QName xmlType) throws IOException ; 351 352 354 public Stack getElementStack(); 355 356 360 public QName getCurrentXMLType(); 361 362 367 public boolean isNoDefaultNamespace(); 368 369 372 public void setNoDefaultNamespace(boolean noDefaultNamespace); 373 } 374 375 376 | Popular Tags |