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


Chapter 7 Java Palette : Java Schema

Java Schema
Shared Configuration
The Java Schema shared configuration resource allows you to specify a Java class that is used to configure a Java To XML or XML To Java activity.
The Java class is converted to an XML schema using the following rules:
Java Bean accessors and modifiers are mapped to appropriate XML element names. For example, a Java class method public int getBalance() or public void setBalance(int Balance) are mapped to an XML element named Balance.
Only one XML element is created regardless of how many members of the Java class share the same name. For example, there may be an attribute named MySalary and accessors named getMySalary() and setMySalary(). This translates to one element named MySalary in the resulting XML document.
Conversion is case-sensitive. For example, if you have a data member declared as public int zipCode and an accessor method declared public void setZipCode(int NewZipCode), there will be two elements in the resulting XML schema, zipCode (for the data member) and ZipCode (for the accessor). You must make sure to use the correct element when using the resulting XML in input mappings of subsequent activities.
All Java primitive types are supported. Datatypes that extend java.util.Collections are also supported (for example, List, ArrayList, andVectors). Arrays (for example, int[] and string[]) are also supported.
The datatype java.util.Map or any types that extend java.util.Map are not supported. For example, HashMap is not supported.
Configuration
The Configuration tab has the following fields.
Use this field to specify an AliasLibrary resource that is used to locate the Java class files. See TIBCO Designer Palette Reference for more information about AliasLibrary resources.
Schema Text
The Schema Text tab displays the resulting XML schema from the Java class selected on the Configuration tab.

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