Class NamespaceBinding

java.lang.Object
tools.jackson.dataformat.xml.ser.NamespaceBinding
All Implemented Interfaces:
XmlGeneratorWritable

public class NamespaceBinding extends Object implements XmlGeneratorWritable
Entity representing binding from prefix to namespace URI, used to determine prefix to use for given namespace URI (and dynamically adding necessary declarations)
Since:
3.2
  • Constructor Details

    • NamespaceBinding

      public NamespaceBinding(String prefix, String namespaceURI)
  • Method Details

    • write

      public void write(ToXmlGenerator xmlGen, org.codehaus.stax2.XMLStreamWriter2 sw) throws XMLStreamException
      Description copied from interface: XmlGeneratorWritable
      Method to call to actually write out the entity using given XMLStreamWriter2. ToXmlGenerator is only passed in case access to configuration was needed.
      Specified by:
      write in interface XmlGeneratorWritable
      Parameters:
      xmlGen - Generator that called this method: MUST NOT call its output methods, only to be used for configuration access
      sw - Writer to use for actual output of XML event
      Throws:
      XMLStreamException