org.apache.axis.encoding

Class AttributeSerializationContextImpl

Implemented Interfaces:
SerializationContext

public class AttributeSerializationContextImpl
extends SerializationContext

Used to suppress element tag serialization when serializing simple types into attributes.
Author:
Thomas Sandholm (sandholm@mcs.anl.gov)

Field Summary

Fields inherited from class org.apache.axis.encoding.SerializationContext

log, startOfDocument

Constructor Summary

AttributeSerializationContextImpl(Writer writer, SerializationContext parent)

Method Summary

void
endElement()
Writes the end element tag for the open element.
String
qName2String(QName qname)
void
startElement(QName qName, Attributes attributes)
Writes (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.

Methods inherited from class org.apache.axis.encoding.SerializationContext

attributeQName2String, endElement, getCurrentMessage, getCurrentXMLType, getDoMultiRefs, getEncoder, getEncoding, getEncodingStyle, getItemQName, getItemType, getMessageContext, getPrefixForURI, getPrefixForURI, getPrefixForURI, getPretty, getQNameForClass, getSerializerForJavaType, getTypeMapping, getTypeMappingRegistry, getValueAsString, isEncoded, isPrimitive, outputMultiRefs, qName2String, qName2String, registerPrefixForURI, serialize, serialize, serialize, serialize, setDoMultiRefs, setEncoding, setItemQName, setItemType, setPretty, setSendDecl, setTypeAttribute, setWriteXMLType, shouldSendXSIType, startElement, writeChars, writeDOMElement, writeSafeString, writeString, writeXMLDeclaration

Constructor Details

AttributeSerializationContextImpl

public AttributeSerializationContextImpl(Writer writer,
                                         SerializationContext parent)

Method Details

endElement

public void endElement()
            throws IOException
Writes the end element tag for the open element.
Overrides:
endElement in interface SerializationContext

qName2String

public String qName2String(QName qname)
Overrides:
qName2String in interface SerializationContext

startElement

public void startElement(QName qName,
                         Attributes attributes)
            throws IOException
Writes (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.
Overrides:
startElement in interface SerializationContext
Parameters:
qName - is the name of the element
attributes - are the attributes to write

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.