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
Содержание WebSphere Adapters
Страница 1: ...WebSphere Adapters WebSphere Adapter Toolkit User Guide Version 6 Release 2 Version 6 Release 2...
Страница 2: ......
Страница 3: ...WebSphere Adapters WebSphere Adapter Toolkit User Guide Version 6 Release 2 Version 6 Release 2...
Страница 6: ...iv WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Страница 211: ...7 Start UTC using the Run universal test client option WebSphere Adapter development overview 205...
Страница 220: ...214 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Страница 224: ...218 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Страница 225: ......
Страница 226: ...Printed in USA...