getChildPropValue()

Retrieves the string values from a specified child property in the hierarchical connector property.

Syntax

public String[] getChildPropValue(String propName);

Parameters

propName
Specifies the name of the connector configuration property whose string values are retrieved.

Return values

A reference to an array of String objects, each of which represents one string value for the specified child property. If the specified child property does not exist in the current hierarchical connector property, the method returns null.

Exceptions

None.

Notes

The getChildPropValue() retrieves a string values for a specified child property. Before a call to getChildPropValue(), you can use the hasValue() method to verify that the hierarchical connector property has string values. To retrieve all string values of a hierarchical connector property, use the getStringValues() method.

If a hierarchical connector property has encrypted string values (its encrypted flag is true), the getChildPropValue() returns the unencrypted values. You do not have to handle decryption.

See also

getStringValues(),, hasValue()

Copyright IBM Corp. 1997, 2004