Back to Using The JAXB Wizard And Code Seeder Palette, or Using The JAXB Wizard And Code Seeder Palette Info
| At line 29 changed 4 lines. |
| The unmarshalling process optionally involves validation of the source XML documents before generating the content tree.\\ |
| %%information |
| Note - If you modify the content tree in Step 6 (below), you can also use the JAXB Validate operation to validate the changes before marshalling the content back to an XML document.\\ |
| %%\\ |
| The unmarshalling process optionally involves validation of the source XML documents before generating the content tree.\\ \\__Note:__ If you modify the content tree in Step 6 (below), you can also use the JAXB Validate operation to validate the changes before marshalling the content back to an XML document.\\ \\ |
| At line 51 changed 1 line. |
| * Unmarshal JAXB Object\\Figure 1-1 Palette Menu[{Image src='JAXB_Pallette_menu.gif' width='' height='' align='left|center|right' }] |
| * Unmarshal JAXB Object\\ \\__Figure 1-1 Palette Menu__[{Image src='JAXB_Pallette_menu.gif' width='' height='' align='left|center|right' }] |
| At line 60 changed 4 lines. |
| The Generate JAXB Constructs code dialog box is displayed.\\Figure 1-2 JAXB Constructs Object[{Image src='GenerateJAXB_Constructs.gif' width='' height='' align='left|center|right' }] |
| # Enter the JAXB class name with the package name to be instantiated/initialized. You can also use the __Find...__ button to search for the class (as shown below).\\Figure 1-3 Find Class Type[{Image src='Find_JAXB_class.gif' width='' height='' align='left|center|right' }] |
| # Enter a sample XML file (if available) for the initialization code to use. Update the auto generated method name if required.\\ Figure 1-4 Providing Sample XML File[{Image src='Provide_Optional_XML.gif' width='' height='' align='left|center|right' }] |
| # Assuming the XML file conforms to the schema used in generating JAXB classes, a method will be created (as shown below)\\Figure 1-5 Successful Method Created[{Image src='method.gif' width='' height='' align='left|center|right' }] |
| The Generate JAXB Constructs code dialog box is displayed.\\ \\__Figure 1-2 JAXB Constructs Object__[{Image src='GenerateJAXB_Constructs.gif' width='' height='' align='left|center|right' }] |
| # Enter the JAXB class name with the package name to be instantiated/initialized. You can also use the __Find...__ button to search for the class (as shown below).\\__Figure 1-3 Find Class Type__[{Image src='Find_JAXB_class.gif' width='' height='' align='left|center|right' }] |
| # Enter a sample XML file (if available) for the initialization code to use. Update the auto generated method name if required.\\__Figure 1-4 Providing Sample XML File__[{Image src='Provide_Optional_XML.gif' width='' height='' align='left|center|right' }] |
| Assuming the XML file conforms to the schema used in generating JAXB classes, a method will be created (as shown below)\\__Figure 1-5 Successful Method Created__[{Image src='method.gif' width='' height='' align='left|center|right' }] |
| At line 65 changed 2 lines. |
| If the sample XML file is not provided, the code generated will not populate the default values (as shown below).\\Figure 1-6 Unpopulated Method |
| [{Image src='unpopulated_method.gif' width='' height='' align='left|center|right' }] |
| If the sample XML file is not provided, the code generated will not populate the default values (as shown below).\\__Figure 1-6 Unpopulated Method__[{Image src='unpopulated_method.gif' width='' height='' align='left|center|right' }] |
| At line 79 changed 1 line. |
| The __Generate JAXB Marshal code__dialog box is displayed.\\Figure 1-7 JAXB Marshal Object[{Image src='GenerateJAXB_Marshaler.gif' width='' height='' align='left|center|right' }] |
| The __Generate JAXB Marshal code__dialog box is displayed.\\__Figure 1-7 JAXB Marshal Object__[{Image src='GenerateJAXB_Marshaler.gif' width='' height='' align='left|center|right' }] |
| # Enter the JAXB object's class name or use the __Find...__ button to search for the class. (as in the Construct's section Figure 1-3) |
| # Select the __Marshal To__ option. You can generate the code from a marshal JAXB object to one of String, Writer, OutputStream, JMSTextMessage, or File.\\__Figure 1-8 Select Marshal To__[{Image src='Select_Marshal_option.gif' width='' height='' align='left|center|right' }] |
| At line 81 changed 3 lines. |
| # 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) |
| # Select the __Marshal To__ option. You can generate the code from a marshal JAXB object to one of String, Writer, OutputStream, JMSTextMessage, or File.\\Figure 1-8 Select Marshal To |
| [{Image src='Select_Marshal_option.gif' width='' height='' align='left|center|right' }] |
| The desired method will be generated (as shown below).\\__Figure 1-9 Marshal Generated Method__[{Image src='Marshaller_method.gif' width='' height='' align='left|center|right' }] |
| At line 85 removed 1 line. |
| The desired method will be generated (as shown below).\\Figure 1-9 Marshal Generated Method[{Image src='Marshaller_method.gif' width='' height='' align='left|center|right' }] |
| At line 87 removed 1 line. |
| At line 98 changed 2 lines. |
| The __Generate JAXB Unmarshal code__ dialog box is displayed.\\Figure 1-10 Unmarshal Option[{Image src='GenerateJAXB_Unmarshal.gif' width='' height='' align='left|center|right' }] |
| The __Generate JAXB Unmarshal code__ dialog box is displayed.\\__Figure 1-10 Unmarshal Option__[{Image src='GenerateJAXB_Unmarshal.gif' width='' height='' align='left|center|right' }] |
| At line 101 changed 1 line. |
| # 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[{Image src='Select_Unmarshal_option.gif' width='' height='' align='left|center|right' }] |
| # 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__[{Image src='Select_Unmarshal_option.gif' width='' height='' align='left|center|right' }] |
| At line 103 changed 1 line. |
| The Unmarshal Method will be generated as shown below.\\Figure 1-12 Unmarshal Method[{Image src='Unmarshaller_method.gif' width='' height='' align='left|center|right' }] |
| The Unmarshal Method will be generated (as shown below).\\__Figure 1-12 Unmarshal Method__[{Image src='Unmarshaller_method.gif' width='' height='' align='left|center|right' }] |