Class AttributeSerializationContextImpl

  • All 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)
    • Constructor Detail

      • AttributeSerializationContextImpl

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

      • startElement

        public void startElement​(QName qName,
                                 org.xml.sax.Attributes attributes)
                          throws java.io.IOException
        Description copied from class: SerializationContext
        Writes (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.
        Overrides:
        startElement in class SerializationContext
        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: SerializationContext
        Writes the end element tag for the open element.
        Overrides:
        endElement in class SerializationContext
        Throws:
        java.io.IOException