IntelliJ IDEA 2018.2 Help

Generating Marshallers

WithIntelliJ IDEA, you can have marshal code stubs generated using JAXB or XMLBeans binding tools.

To generate marshal code using JAXB

  1. Position the cursor where you need the marshaller to be generated.

  2. Do one of the following:
    • On the main menu, choose Tools | JAXB | JAXB Client Code | Generate JAXB marshal code (Java object to XML)

    • On the context menu, choose WebServices | JAXB Client Code | Generate JAXB marshal code (Java object to XML)

To generate marshal code using XMLBeans

  1. Position the cursor where you need the marshaller to be generated.

  2. Do one of the following:
    • On the main menu, choose Tools | XMLBeans | XMLBeans Client Code | Generate XMLBeans marshal code (Java object to XML)

    • On the context menu, choose WebServices | XMLBeans Client Code | Generate XMLBeans marshal code (Java object to XML)

Last modified: 20 November 2018

See Also