Retrieves a specified child property for the hierarchical connector configuration property at any level of the property hierarchy.
Syntax
public CxProperty getChildProp(String propName);
Parameters
Return values
A CxProperty object that contains the retrieved property from the hierarchy. If the specified property does not exist in the current hierarchical connector property, the method returns null.
Exceptions
None.
Notes
The getChildProp() method retrieves the child property whose name matches propName from the hierarchical connector configuration property. You can retrieve a child property at any level of the current property hierarchical; you can specify a grandchild, great-grandchild, and so on. The propName of the retrieved child property has the form:
child/grandchild/great-grandchild/....
For example, suppose you have the property hierarchy shown in Figure 77. To obtain the name of the port for Listener1, you must first retrieve the top-level connector-object for ProtocolListener (for example, into topLevelProp). You can then use the following call to retrieve the port name of Listener1:
CxProperty listenerPort = topLevelProp.getChildProp("Listener1/Port");
To retrieve all child properties at the top level of the hierarchy, you can use the getAllChildProps() method.
See also