org.jboss.axis.encoding
Class AttributeSerializationContextImpl

java.lang.Object
  extended byorg.jboss.axis.encoding.SerializationContextImpl (src) 
      extended byorg.jboss.axis.encoding.AttributeSerializationContextImpl
All Implemented Interfaces:
SerializationContext (src) , SerializationContext (src)

public class AttributeSerializationContextImpl
extends SerializationContextImpl (src)

Used to suppress element tag serialization when serializing simple types into attributes.


Constructor Summary
AttributeSerializationContextImpl(java.io.Writer writer, SerializationContext (src)  parent)
           
 
Method Summary
 void endDocument()
          Output anything in the end.
 void endElement()
          Writes the end element tag for the open element.
 java.lang.String qName2String(QName (src)  qname)
          Convert QName to a string of the form :
 void startDocument()
          Output anything in the beginning.
 void startElement(QName (src)  qName, org.xml.sax.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.jboss.axis.encoding.SerializationContextImpl (src)
attributeQName2String, getCurrentMessage, getCurrentXMLType, getDoMultiRefs, getElementStack, getMessageContext, getPrefixForURI, getPrefixForURI, getPrefixForURI, getPretty, getQNameForClass, getSerializerForJavaType, getTypeMapping, getTypeMappingRegistry, getValueAsString, isNoDefaultNamespace, isPrimitive, outputMultiRefs, qName2String, registerPrefixForURI, serialize, serialize, setDoMultiRefs, setNoDefaultNamespace, setPretty, setSendDecl, setTypeAttribute, shouldSendXSIType, writeChars, writeDOMElement, writeSafeString, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSerializationContextImpl

public AttributeSerializationContextImpl(java.io.Writer writer,
                                         SerializationContext (src)  parent)
Method Detail

startElement

public void startElement(QName (src)  qName,
                         org.xml.sax.Attributes attributes)
                  throws java.io.IOException
Description copied from class: SerializationContextImpl (src)
Writes (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.

Specified by:
startElement in interface SerializationContext (src)
Overrides:
startElement in class SerializationContextImpl (src)
Parameters:
qName - is the name of the element
attributes - are the attributes to write
Throws:
java.io.IOException

endElement

public void endElement()
                throws java.io.IOException
Description copied from class: SerializationContextImpl (src)
Writes the end element tag for the open element.

Specified by:
endElement in interface SerializationContext (src)
Overrides:
endElement in class SerializationContextImpl (src)
Throws:
java.io.IOException

qName2String

public java.lang.String qName2String(QName (src)  qname)
Description copied from interface: SerializationContext (src)
Convert QName to a string of the form :

Specified by:
qName2String in interface SerializationContext (src)
Overrides:
qName2String in class SerializationContextImpl (src)

startDocument

public void startDocument()
                   throws java.io.IOException
Description copied from interface: SerializationContext (src)
Output anything in the beginning.

Specified by:
startDocument in interface SerializationContext (src)
Overrides:
startDocument in class SerializationContextImpl (src)
Throws:
java.io.IOException

endDocument

public void endDocument()
                 throws java.io.IOException
Description copied from interface: SerializationContext (src)
Output anything in the end.

Specified by:
endDocument in interface SerializationContext (src)
Overrides:
endDocument in class SerializationContextImpl (src)
Throws:
java.io.IOException