Other Methods

Other generated methods include the following:

get<Element>/set<Element> - Public get/set methods are generated for each element within a container type (SEQUENCE, SET, CHOICE) if the -getset command-line switch is specified.

print() - A public print() method. This is only generated if the –print option is specified. This provides a formatted printout of the contents of the object. The output can be directed to a PrintStream object.

getElemName() - A public getElemName method (CHOICE only). This method retrieves the name of an element within a CHOICE construct give its assigned identifier value.

set_<element> - Public set_<element> methods (CHOICE only). These are generated for each element in a CHOICE construct to allow the CHOICE value to be set. Note that this method is not generated if -getset is specified. In this case, the standard set method is used to set the choice option.