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
Содержание 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...