Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

oracle.olapi.metadata.mdm
Class MdmBaseObjectVisitor

java.lang.Object
  |
  +--oracle.olapi.metadata.mdm.MdmBaseObjectVisitor

public abstract class MdmBaseObjectVisitor
extends java.lang.Object
implements MdmObjectVisitor

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 acceptVisitor method takes as its input parameters an MdmObjectVisitor and a context object. When you call the acceptVisitor method on an MdmObject, the acceptVisitor method calls the corresponding visit method on your MdmBaseObjectVisitor. The acceptVisitor method passes the MdmObject and the context to the visit method. For example, you could call the acceptVisitor method on an MdmMeasure and pass it your MdmBaseObjectVisitor and context objects. The acceptVisitor method would then pass the MdmMeasure and the context you passed it to the visitMdmMeasure method of your MdmObjectVisitor.

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


Method Summary
 java.lang.Object visitMdmAttribute(MdmAttribute mdmObject, java.lang.Object context)
          Executes operations on the specified MdmAttribute.
 java.lang.Object visitMdmDimension(MdmDimension mdmObject, java.lang.Object context)
          Executes operations on the specified MdmDimension.
 java.lang.Object visitMdmDimensionedObject(MdmDimensionedObject mdmObject, java.lang.Object context)
          Executes operations on the specified MdmDimensionedObject.
 java.lang.Object visitMdmHierarchy(MdmHierarchy mdmObject, java.lang.Object context)
          Executes operations on the specified MdmHierarchy.
 java.lang.Object visitMdmLevel(MdmLevel mdmObject, java.lang.Object context)
          Executes operations on the specified MdmLevel.
 java.lang.Object visitMdmLevelHierarchy(MdmLevelHierarchy mdmObject, java.lang.Object context)
          Executes operations on the specified MdmLevelHierarchy.
 java.lang.Object visitMdmMeasure(MdmMeasure mdmObject, java.lang.Object context)
          Executes operations on the specified MdmMeasure.
 java.lang.Object visitMdmMeasureDimension(MdmMeasureDimension mdmObject, java.lang.Object context)
          Executes operations on the specified MdmMeasureDimension.
 java.lang.Object visitMdmObject(MdmObject mdmObject, java.lang.Object context)
          Executes operations on any object that is a subclass of MdmObject, which is useful when you do not need subclass-specific information.
 java.lang.Object visitMdmPrimaryDimension(MdmPrimaryDimension mdmObject, java.lang.Object context)
          Executes operations on the specified MdmPrimaryDimension.
 java.lang.Object visitMdmSchema(MdmSchema mdmObject, java.lang.Object context)
          Executes operations on the specified MdmSchema.
 java.lang.Object visitMdmSource(MdmSource mdmObject, java.lang.Object context)
          Executes operations on the specified MdmSource.
 java.lang.Object visitMdmStandardDimension(MdmStandardDimension mdmObject, java.lang.Object context)
          Executes operations on the specified MdmStandardDimension.
 java.lang.Object visitMdmSubDimension(MdmSubDimension mdmObject, java.lang.Object context)
          Executes operations on the specified MdmSubDimension.
 java.lang.Object visitMdmTimeDimension(MdmTimeDimension mdmObject, java.lang.Object context)
          Executes operations on the specified MdmTimeDimension.
 java.lang.Object visitMdmValueHierarchy(MdmValueHierarchy mdmObject, java.lang.Object context)
          Executes operations on the specified MdmValueHierarchy.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

visitMdmAttribute

public java.lang.Object visitMdmAttribute(MdmAttribute mdmObject,
                                          java.lang.Object context)
Executes operations on the specified MdmAttribute. The default implementation of this method calls the visitMdmDimensionedObject method.
Specified by:
visitMdmAttribute in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmAttribute.
context - An Object.
Returns:
An Object.

visitMdmDimension

public java.lang.Object visitMdmDimension(MdmDimension mdmObject,
                                          java.lang.Object context)
Executes operations on the specified MdmDimension. The default implementation of this method calls the visitMdmSource method.
Parameters:
mdmObject - An MdmDimension.
context - An Object.
Returns:
An Object.

visitMdmDimensionedObject

public java.lang.Object visitMdmDimensionedObject(MdmDimensionedObject mdmObject,
                                                  java.lang.Object context)
Executes operations on the specified MdmDimensionedObject. The default implementation of this method calls the visitMdmSource method.
Parameters:
mdmObject - An MdmDimensionedObject.
context - An Object.
Returns:
An Object.

visitMdmHierarchy

public java.lang.Object visitMdmHierarchy(MdmHierarchy mdmObject,
                                          java.lang.Object context)
Executes operations on the specified MdmHierarchy. The default implementation of this method calls visitMdmSubDimension method.
Parameters:
mdmObject - An MdmHierarchy.
context - An Object.
Returns:
An Object.

visitMdmLevel

public java.lang.Object visitMdmLevel(MdmLevel mdmObject,
                                      java.lang.Object context)
Executes operations on the specified MdmLevel. The default implementation of this method calls visitMdmSubDimension method.
Specified by:
visitMdmLevel in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmLevel.
context - An Object.
Returns:
An Object.

visitMdmLevelHierarchy

public java.lang.Object visitMdmLevelHierarchy(MdmLevelHierarchy mdmObject,
                                               java.lang.Object context)
Executes operations on the specified MdmLevelHierarchy. The default implementation of this method calls the visitMdmHierarchy method.
Specified by:
visitMdmLevelHierarchy in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmLevelHierarchy.
context - An Object.
Returns:
An Object.

visitMdmMeasure

public java.lang.Object visitMdmMeasure(MdmMeasure mdmObject,
                                        java.lang.Object context)
Executes operations on the specified MdmMeasure. The default implementation of this method calls the visitMdmDimensionedObject method.
Specified by:
visitMdmMeasure in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmMeasure.
context - An Object.
Returns:
An Object.

visitMdmMeasureDimension

public java.lang.Object visitMdmMeasureDimension(MdmMeasureDimension mdmObject,
                                                 java.lang.Object context)
Executes operations on the specified MdmMeasureDimension. The default implementation of this method calls the visitMdmPrimaryDimension method.
Specified by:
visitMdmMeasureDimension in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmMeasureDimension.
context - An Object.
Returns:
An Object.

visitMdmObject

public java.lang.Object visitMdmObject(MdmObject mdmObject,
                                       java.lang.Object context)
Executes operations on any object that is a subclass of MdmObject, which is useful when you do not need subclass-specific information. The default implementation of this method returns null.
Parameters:
MdmObject - An MdmObject.
context - An Object.
Returns:
An Object.

visitMdmPrimaryDimension

public java.lang.Object visitMdmPrimaryDimension(MdmPrimaryDimension mdmObject,
                                                 java.lang.Object context)
Executes operations on the specified MdmPrimaryDimension. The default implementation of this method calls the visitMdmDimension method.
Parameters:
mdmObject - An MdmPrimaryDimension.
context - An Object.
Returns:
An Object.

visitMdmSchema

public java.lang.Object visitMdmSchema(MdmSchema mdmObject,
                                       java.lang.Object context)
Executes operations on the specified MdmSchema. The default implementation of this method calls the visitMdmObject method.
Specified by:
visitMdmSchema in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmSchema.
context - An Object.
Returns:
An Object.

visitMdmSource

public java.lang.Object visitMdmSource(MdmSource mdmObject,
                                       java.lang.Object context)
Executes operations on the specified MdmSource. The default implementation of this method calls the visitMdmObject method.
Parameters:
mdmObject - An MdmSource.
context - An Object.
Returns:
An Object.

visitMdmStandardDimension

public java.lang.Object visitMdmStandardDimension(MdmStandardDimension mdmObject,
                                                  java.lang.Object context)
Executes operations on the specified MdmStandardDimension. The default implementation of this method calls the visitMdmPrimaryDimension method.
Specified by:
visitMdmStandardDimension in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmStandardDimension.
context - An Object.
Returns:
An Object.

visitMdmSubDimension

public java.lang.Object visitMdmSubDimension(MdmSubDimension mdmObject,
                                             java.lang.Object context)
Executes operations on the specified MdmSubDimension. The default implementation of this method calls the visitMdmDimension method.
Parameters:
mdmObject - An MdmSubDimension.
context - An Object.
Returns:
An Object.

visitMdmTimeDimension

public java.lang.Object visitMdmTimeDimension(MdmTimeDimension mdmObject,
                                              java.lang.Object context)
Executes operations on the specified MdmTimeDimension. The default implementation of this method calls the visitMdmPrimaryDimension method.
Specified by:
visitMdmTimeDimension in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmTimeDimension.
context - An Object.
Returns:
An Object.

visitMdmValueHierarchy

public java.lang.Object visitMdmValueHierarchy(MdmValueHierarchy mdmObject,
                                               java.lang.Object context)
Executes operations on the specified MdmValueHierarchy. The default implementation of this method calls the visitMdmHierarchy method.
Specified by:
visitMdmValueHierarchy in interface MdmObjectVisitor
Parameters:
mdmObject - An MdmValueHierarchy.
context - An Object.
Returns:
An Object.

Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

Copyright © 2002, 2003, Oracle. All Rights Reserved.