![IBM WebSphere Adapter Toolkit User Manual Download Page 161](http://html1.mh-extra.com/html/ibm/websphere-adapter-toolkit/websphere-adapter-toolkit_user-manual_608688161.webp)
getChildList
The
getChildList()
method returns the
Iterator
for the child objects of the
DataDescription
.
public Iterator getChildList() throws MetadataException
{
return (this.getMetadataObject().getChildren(null)).getObjectIterator();
}
WBIInboundServiceDescriptionImpl samples:
WBIInboundServiceDescriptionImpl
represents the object that populates function
descriptions for inbound service descriptions.
Implement the method shown in the section below.
setFunctionDescriptions
The
setFunctionDescriptions()
method populates function descriptions based on
objects and properties selected in
MetadataSelection
.
public void setFunctionDescriptions(MetadataSelection selection)
throws MetadataException {
MetadataImportConfiguration[] selectedObjects = selection.getSelection();
PropertyGroup selectionProperties =
((WBIMetadataSelectionImpl) selection).getAppliedSelectionProperties();
WBIMultiValuedPropertyImpl operationsProperty =
(WBIMultiValuedPropertyImpl) selectionProperties.getProperty("Operations");
String[] operations = operationsProperty.getValuesAsStrings();
ArrayList functionDescriptions = new ArrayList();
String location = TwineBallConfigurationProperties.getLocation
(selectionProperties);
// iterate through the objects.
for (int i = 0; i < selectedObjects.length; i++) {
WBIMetadataImportConfigurationImpl spec =
(WBIMetadataImportConfigurationImpl) selectedObjects[i];
WBIInboundFunctionDescriptionImpl functionDescription;
TwineBallMetadataObject metadataObj =
(TwineBallMetadataObject) spec.getMetadataObject();
for (int j = 0; j < operations.length; j++) {
String operation = operations[j];
functionDescription = new WBIInboundFunctionDescriptionImpl();
char firstCharacter = operation.charAt(0);
//convention for displaying the outbound function.
functionDescription.setName
("emit" + Character.toUpperCase(firstCharacter) +
operation.substring(1).toLowerCase() + "AfterImage" +
StringCaseChanger.toCamelCase(metadataObj.getDisplayName()));
functionDescription.setEISFunctionName(functionDescription.getName());
functionDescription.setImportConfiguration(spec);
TwineBallDataDescription dataDescription = new TwineBallDataDescription();
dataDescription.setMetadataObject(metadataObj);
dataDescription.setName(getNameSpace(),
StringCaseChanger.toCamelCase(metadataObj.getDisplayName()));
dataDescription.populateSchemaDefinitions();
dataDescription.setRelativePath(location);
dataDescription.setName(getNameSpace() + "/" +
metadataObj.getBOName().toLowerCase() +
"bg", metadataObj.getBOName() + "BG");
functionDescription.setInputDataDescription(dataDescription);
functionDescriptions.add(functionDescription);
}
}
WebSphere Adapter development overview
155
Summary of Contents for WebSphere Adapter Toolkit
Page 2: ......
Page 6: ...iv WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 220: ...214 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 224: ...218 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 225: ......
Page 226: ...Printed in USA...