Understanding Sun Master Index Processing (Repository)

addChild

Description

This method associates a new child object with the parent object. The new child object is of the type specified in the method name. For example, to associate a new address object with a parent object, call addAddress.

Syntax

void addChild(ChildObject child)


Note –

The type of object passed as a parameter depends on the child object to associate with the parent object. For example, the syntax for associating an address object is as follows:


 void addAddress(AddressObject address)

Parameters

Name 

Type 

Description 

child

ChildObject

A child object to associate with the parent object. The name and type of the parameter is specified by the child object name. 

Returns

None.

Throws

ObjectException