IBM WebSphere Adapters Network Card User Manual


 
createSelectionProperties
The createSelectionProperties() method returns a property group that is used to
capture inputs from users. These inputs include business object namespace,
supported operations, and the relative path in the module project where XML
schema definitions should be saved.
public PropertyGroup createSelectionProperties() {
WBIPropertyGroupImpl propertyGroup = null;
try {
propertyGroup = new WBIPropertyGroupImpl
(Constants.SELECTION_PROPERTIES);
propertyGroup.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName
(Constants.SELECTIONPROPERTIES));
propertyGroup.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription
(Constants.SELECTIONPROPERTIES));
WBISingleValuedPropertyImpl typeProp =
createServiceTypeProperty(propertyGroup);
ServiceTypeSingleProperty operationProp =
createNamespaceProperty(propertyGroup);
createMaxRecordProperty(propertyGroup);
createRelativePathProperty(propertyGroup);
//Copy the applied properties to the new instance
if (this.getAppliedSelectionProperties() != null)
EMDUtil.copyValues
(this.getAppliedSelectionProperties(), propertyGroup);
typeProp.addPropertyChangeListener(operationProp);
} catch (MetadataException e) {
throw new RuntimeException(e);
}
return propertyGroup;
}
WBIMetadataImportConfigurationImpl samples:
WBIMetadataImportConfigurationImpl represents an instance of MetadataObject
and the configuration properties that users specify for it.
Extend WBIMetadataImportConfigurationImpl and implement the methods
described below.
Constructor
The constructor for WBIMetadataImportConfigurationImpl accepts MetadataObject.
public TwineBallMetadataImportConfiguration(WBIMetadataObjectImpl
metadataObject) { super(metadataObject); }
createConfigurationProperties
The createConfigurationProperties() method returns a property group for the
MetadataObject. The properties are specific to the instance of MetadataObject and
are used to capture inputs from users. Those inputs might include operations that
are supported for each MetadataObject instance, or additional information required
to process the object at run time.
WBIMetadataEditImpl samples:
150 WebSphere Adapters: WebSphere Adapter Toolkit User Guide