|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.encoding.SerializationContext
Manage a serialization, including keeping track of namespace mappings and element stacks. WARNING : HIGHLY PRELIMINARY!!!
Field Summary | |
NSStack |
nsStack
|
Constructor Summary | |
SerializationContext(java.io.Writer writer)
|
|
SerializationContext(java.io.Writer writer,
MessageContext msgContext)
|
Method Summary | |
void |
endElement()
|
void |
endPrefix(java.lang.String prefix)
|
Message |
getCurrentMessage()
Return the current message |
java.lang.String |
getPrefixForURI(java.lang.String uri)
Get a prefix for a namespace URI. |
java.lang.String |
getPrefixForURI(java.lang.String uri,
java.lang.String defaultPrefix)
Get a prefix for the given namespace URI. |
boolean |
getPretty()
|
QName |
getQNameForClass(java.lang.Class cls)
|
TypeMappingRegistry |
getTypeMappingRegistry()
Obtain a copy of the TypeMappingRegistry we're using |
boolean |
isPrimitive(java.lang.Object value)
Classes which are known to not require multi-ref. |
void |
outputMultiRefs()
|
java.lang.String |
qName2String(QName qName)
|
void |
registerPrefixForURI(java.lang.String prefix,
java.lang.String uri)
|
void |
serialize(QName qName,
org.xml.sax.Attributes attributes,
java.lang.Object value)
|
void |
setDoMultiRefs(boolean shouldDo)
Set whether we are doing multirefs |
void |
setPretty(boolean pretty)
|
void |
setSendDecl(boolean sendDecl)
Set whether or not we should write XML declarations |
boolean |
shouldSendXSIType()
Set whether or not to write xsi:type attributes |
void |
startElement(QName qName,
org.xml.sax.Attributes attributes)
|
void |
writeChars(char[] p1,
int p2,
int p3)
|
void |
writeDOMElement(org.w3c.dom.Element el)
Output a DOM representation to a SerializationContext |
void |
writeElement(QName qName,
org.xml.sax.Attributes attributes)
Convenience method for writing an element with no structure inside it. |
void |
writeSafeString(java.lang.String string)
|
void |
writeString(java.lang.String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public NSStack nsStack
Constructor Detail |
public SerializationContext(java.io.Writer writer)
public SerializationContext(java.io.Writer writer, MessageContext msgContext)
Method Detail |
public boolean getPretty()
public void setPretty(boolean pretty)
public void setDoMultiRefs(boolean shouldDo)
public void setSendDecl(boolean sendDecl)
public boolean shouldSendXSIType()
public TypeMappingRegistry getTypeMappingRegistry()
public java.lang.String getPrefixForURI(java.lang.String uri)
public Message getCurrentMessage()
public java.lang.String getPrefixForURI(java.lang.String uri, java.lang.String defaultPrefix)
public void registerPrefixForURI(java.lang.String prefix, java.lang.String uri)
public void endPrefix(java.lang.String prefix)
public java.lang.String qName2String(QName qName)
public QName getQNameForClass(java.lang.Class cls)
public boolean isPrimitive(java.lang.Object value)
public void serialize(QName qName, org.xml.sax.Attributes attributes, java.lang.Object value) throws java.io.IOException
public void outputMultiRefs() throws java.io.IOException
public void startElement(QName qName, org.xml.sax.Attributes attributes) throws java.io.IOException
public void writeElement(QName qName, org.xml.sax.Attributes attributes) throws java.io.IOException
qName
- the qualified name of the new elementattributes
- any attributes which should be written on the elementjava.io.IOException
- if there is any troublepublic void endElement() throws java.io.IOException
public void writeChars(char[] p1, int p2, int p3) throws java.io.IOException
public void writeString(java.lang.String string) throws java.io.IOException
public void writeSafeString(java.lang.String string) throws java.io.IOException
public void writeDOMElement(org.w3c.dom.Element el) throws java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |