JAXB Wizard and Code-Seeder Palette User's Guide

ProcedureTo Generate Code Using the Unmarshal JAXB Object

  1. To unmarshal an existing JAXB class object, drag and drop the JAXB Unmarshal palette icon into the IDE editor.

    The Generate JAXB Unmarshal code dialog box is displayed.

    Figure 10 Unmarshal Option

    Marshal To

  2. Enter the JAXB object's class name or use the Find... button to search for the class. (as in the Construct's Figure 3section)

  3. Select the Unmarshal From option. You can generate the code to unmarshal a JAXB object from one of String, Reader, InputStream, JMSTextMessage, or File.

    Figure 11 Select Unmarshal From

    Unmarshal From

    The Unmarshal Method will be generated as shown below.

    Figure 12 Unmarshal Method

    Unmarshal Method