Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Connections | Creating a WmManagedConnectionFactory Implementation Class | WmDescriptor Interface
 
WmDescriptor Interface
The com.wm.adk.metadata.WmDescriptor interface controls how metadata parameters are handled at design time, during data entry.
To create webMethods metadata for your connection factory, use the WmDescriptor interface within the WmManagedConnectionFactory.fillWmDescriptor method. The table lists some commonly used WmDescriptor methods.
Name
Description
createGroup
Specifies the order in which parameters must appear on the adapter's administrative interface. Group names are not displayed.
setDescriptions
Sets the parameter display name, description, group name, and online help links for the current connection type. This call queries your resource bundle for setDescriptions information about the connections, its parameters, and its groups. The ResourceBundleManager argument must be identical to WmAdapter.getResourceBundleManager
setDisplayName
Assigns a user friendly parameter name. Alternatively, use setDescriptions to use a localized display name.
setMinStringLength
Specifies the minimum length of an input value for a parameter of type string.
setMaxStringLength
Specifies the maximum length of an input value for a parameter of type string.
setPassword
Displays asterisks when the users of the adapter enter passwords. This method also displays a confirmation field in which users must re-enter passwords. Only one copy of the parameter value is set in the connection factory.
Note:
Do not use setPassword on more than one parameter per WmDescriptor.
setValidValues
Specifies the list of valid values for a parameter. These values appear in a dropdown.
Note:
The WmDescriptor methods apply to specified metadata parameter. In these cases, the name of the parameter must be passed as a String.