Using the JAXB Wizard and Code-Seeder Palette

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 1–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 1–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 1–11 Select Unmarshal From

    Unmarshal From

    The Unmarshal Method will be generated as shown below.

    Figure 1–12 Unmarshal Method

    Unmarshal Method