ArrayList objects = getTopLevelObjects();
response.setObjects(objects);
return response;
}
WBIMetadataObjectImpl samples:
WBIMetadataObjectImpl
represents the nodes of the tree that WebSphere Integration
Developer displays during enterprise metadata discovery. In most cases these
nodes map to objects in the EIS that the user selects to import a service
description.
WBIMetadataObjectImpl
should be extended and the following methods must be
implemented.
createFilterProperties
The
createFilterProperties()
method returns an instance of a property group
that represents properties that you can use to filter searches for child objects of a
MetadataObject
. For example, if the top level node is a schema for JDBC, you
might fetch table names with a filter consisting of a specific alphabet sequence.
Implementation should return null if such properties are not applicable. For more
information, see
WBIMetadataTreeImpl.createFilterProperties
in the Javadocs.
createObjectProperties
The
createObjectProperties()
method returns a property group that provides
information about the specific object in
MetadataTree
. This helps inform the user
about the metadata object instance. Implementation should return null if such
properties are not applicable.
getChildren
The
getChildren()
method returns an instance of
WBIMetadataObjectResponseImpl
.
The instance should be populated with child
MetadataObjects
using method
setObjects()
. (This is comparable to the
MetadataTree.listMetadataObjects
call.)
The logic should use filter properties, if are supported by the implementation.
public MetadataObjectResponse getChildren(PropertyGroup filterParameters)
throws MetadataException {
WBIMetadataObjectResponseImpl response =
new WBIMetadataObjectResponseImpl();
ArrayList objects = getChildComponents();
response.setObjects(objects);
return response;
}
WBIMetadataSelectionImpl samples:
WBIMetadataSelectionImpl
represents the object that holds the
MetadataObjects
that users can select for importing. This class also holds properties that users
specify to select from the set of available
MetadataObjects
.
Extend
WBIMetadataSelectionImpl
and implement the following methods described
below.
WebSphere Adapter development overview
149
Содержание 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...