Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 7 Java Palette : XML To Java

XML To Java
Activity
The XML to Java activity allows you to create an instance of a Java object based on data from an XML document. The XML schema for providing input to the Java object is created from the Java object or Java Schema specified on the Configuration tab of this activity. The specified Java class must meet the following requirements:
See Java Schema for a description of the conversion rules.
For example, the object has a method declared as public int getID(), but there is no method for setting the ID and the data member ID is not public. In this case, there is an element named ID in this activity’s input schema, but mapping a value to the element does not result in setting the ID member of the output Java object because there is no public mechanism for setting the data.
Sequenced elements and mapping of enumeration to simple type schemas is supported in the XML to Java activity.
For more information, see , Sequenced Elements and , Enumeration.
Configuration
The Configuration tab has the following fields.
Specifies whether you want to use a Java Schema shared configuration resource to configure this activity or whether you want to specify a Java class file.
Use the Show Class Browser button to bring up the dialog to choose the Java class.
Input
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about mapping and transforming input data.
The input for the activity is the following.
Output
The output for the activity is the following.
<declaringClass>
Error Output
The Error Output tab lists the possible exceptions that can be thrown by this activity. See TIBCO ActiveMatrix BusinessWorks Error Codes for more information about error codes and corrective action to take.
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved