Release 2.x‎ > ‎Install - Reference‎ > ‎Config Ref Guide‎ > ‎Converts‎ > ‎

Converter

A converter is used to convert an OpenPTK internal Structure to and from an external representation.  Converters typically map to MIME type definitions:
  • text/plain
  • text/html
  • application/json
  • application/xml

Syntax


      <Converter type="..." classname="...">
         <Structures>
            ...
         </Structures>
      </Converter>
      <Converter type="..." classname="..."/>

Arguments


 Name Required Description Example
 type yes One of the valid ConverterType enumerations:PLAIN,HTML,JSON,XML type="JSON"
 classname yes Full name of the class that implements the ConverterIF interface classname="org.openptk.structure.JsonConverter"

Properties

None


XML Sub-Elements