An implementation of the MdmObjectVisitor interface that adds methods for visiting more classes in the MdmObject class hierarchy. With your visitor, you can implement polymorphic behavior without having access to the internal code of MdmObject or its subclasses.

MdmBaseObjectVisitor has a visit method for each of the classes in the MdmObject class hierarchy. MdmObject and its subclasses have an acceptVisitor method. The parameters of an acceptVisitor method are an MdmObjectVisitor and a java.lang.Object. When you call the acceptVisitor method of an MdmObject, the acceptVisitor method calls the corresponding visit method of your MdmBaseObjectVisitor. The acceptVisitor method passes the MdmObject and the Object to the visit method. For example, you could call the acceptVisitor method of an MdmMeasure and pass it your MdmBaseObjectVisitor and an Object. The acceptVisitor method would then pass the MdmMeasure and the Object to the visitMdmMeasure method of your MdmObjectVisitor.

A visit method of your MdmBaseObjectVisitor can perform whatever operations you want it to on the MdmObject it receives. For example, a visitMdmMeasure method might call the getDimensions method of the MdmMeasure, and then call methods of the Object to format and display the resulting information. A visit method must return a java.lang.Object.