|
Oracle OLAP Java API Reference 10g Release 1 (10.1) B10994-01 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.olapi.metadata.mdm.MdmBaseObjectVisitor
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 |
public java.lang.Object visitMdmAttribute(MdmAttribute mdmObject,
java.lang.Object context)
MdmAttribute. The default implementation of this method calls the visitMdmDimensionedObject method.mdmObject - An MdmAttribute.context - An Object.Object.
public java.lang.Object visitMdmDimension(MdmDimension mdmObject,
java.lang.Object context)
MdmDimension. The default implementation of this method calls the visitMdmSource method.mdmObject - An MdmDimension.context - An Object.Object.
public java.lang.Object visitMdmDimensionedObject(MdmDimensionedObject mdmObject,
java.lang.Object context)
MdmDimensionedObject. The default implementation of this method calls the visitMdmSource method.mdmObject - An MdmDimensionedObject.context - An Object.Object.
public java.lang.Object visitMdmHierarchy(MdmHierarchy mdmObject,
java.lang.Object context)
MdmHierarchy. The default implementation of this method calls visitMdmSubDimension method.mdmObject - An MdmHierarchy.context - An Object.Object.
public java.lang.Object visitMdmLevel(MdmLevel mdmObject,
java.lang.Object context)
MdmLevel. The default implementation of this method calls visitMdmSubDimension method.mdmObject - An MdmLevel.context - An Object.Object.
public java.lang.Object visitMdmLevelHierarchy(MdmLevelHierarchy mdmObject,
java.lang.Object context)
MdmLevelHierarchy. The default implementation of this method calls the visitMdmHierarchy method.mdmObject - An MdmLevelHierarchy.context - An Object.Object.
public java.lang.Object visitMdmMeasure(MdmMeasure mdmObject,
java.lang.Object context)
MdmMeasure. The default implementation of this method calls the visitMdmDimensionedObject method.mdmObject - An MdmMeasure.context - An Object.Object.
public java.lang.Object visitMdmMeasureDimension(MdmMeasureDimension mdmObject,
java.lang.Object context)
MdmMeasureDimension. The default implementation of this method calls the visitMdmPrimaryDimension method.mdmObject - An MdmMeasureDimension.context - An Object.Object.
public java.lang.Object visitMdmObject(MdmObject mdmObject,
java.lang.Object context)
MdmObject, which is useful when you do not need subclass-specific information. The default implementation of this method returns null.MdmObject - An MdmObject.context - An Object.Object.
public java.lang.Object visitMdmPrimaryDimension(MdmPrimaryDimension mdmObject,
java.lang.Object context)
MdmPrimaryDimension. The default implementation of this method calls the visitMdmDimension method.mdmObject - An MdmPrimaryDimension.context - An Object.Object.
public java.lang.Object visitMdmSchema(MdmSchema mdmObject,
java.lang.Object context)
MdmSchema. The default implementation of this method calls the visitMdmObject method.mdmObject - An MdmSchema.context - An Object.Object.
public java.lang.Object visitMdmSource(MdmSource mdmObject,
java.lang.Object context)
MdmSource. The default implementation of this method calls the visitMdmObject method.mdmObject - An MdmSource.context - An Object.Object.
public java.lang.Object visitMdmStandardDimension(MdmStandardDimension mdmObject,
java.lang.Object context)
MdmStandardDimension. The default implementation of this method calls the visitMdmPrimaryDimension method.mdmObject - An MdmStandardDimension.context - An Object.Object.
public java.lang.Object visitMdmSubDimension(MdmSubDimension mdmObject,
java.lang.Object context)
MdmSubDimension. The default implementation of this method calls the visitMdmDimension method.mdmObject - An MdmSubDimension.context - An Object.Object.
public java.lang.Object visitMdmTimeDimension(MdmTimeDimension mdmObject,
java.lang.Object context)
MdmTimeDimension. The default implementation of this method calls the visitMdmPrimaryDimension method.mdmObject - An MdmTimeDimension.context - An Object.Object.
public java.lang.Object visitMdmValueHierarchy(MdmValueHierarchy mdmObject,
java.lang.Object context)
MdmValueHierarchy. The default implementation of this method calls the visitMdmHierarchy method.mdmObject - An MdmValueHierarchy.context - An Object.Object.
|
Oracle OLAP Java API Reference 10g Release 1 (10.1) B10994-01 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||