|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-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 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
.
Method Summary | |
java.lang.Object |
visitMdmAttribute(MdmAttribute mdmObject, java.lang.Object context) Executes operations on the specified MdmAttribute . |
java.lang.Object |
visitMdmAttributeModel(MdmAttributeModel mdmObject, java.lang.Object context) Executes operations on the specified MdmAttributeModel . |
java.lang.Object |
visitMdmDimension(MdmDimension mdmObject, java.lang.Object context) Executes operations on the specified MdmDimension . |
java.lang.Object |
visitMdmDimensionCalculationModel(MdmDimensionCalculationModel mdmObject, java.lang.Object context) Executes operations on the specified MdmDimensionCalculationModel . |
java.lang.Object |
visitMdmDimensionedObject(MdmDimensionedObject mdmObject, java.lang.Object context) Executes operations on the specified MdmDimensionedObject . |
java.lang.Object |
visitMdmDimensionedObjectModel(MdmDimensionedObjectModel mdmObject, java.lang.Object context) Executes operations on the specified MdmDimensionedObjectModel . |
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 |
visitMdmMeasureModel(MdmMeasureModel mdmObject, java.lang.Object context) Executes operations on the specified MdmMeasureModel . |
java.lang.Object |
visitMdmModel(MdmModel mdmObject, java.lang.Object context) Executes operations on the specified MdmModel . |
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 |
visitMdmStandardMember(MdmStandardMember mdmObject, java.lang.Object context) Executes operations on the specified MdmStandardMember . |
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 |
visitMdmTimeMember(MdmTimeMember mdmObject, java.lang.Object context) Executes operations on the specified MdmTimeMember . |
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
.public java.lang.Object visitMdmModel(MdmModel mdmObject, java.lang.Object context)
MdmModel
.mdmObject
- An MdmModel
.context
- An Object
.Object
.public java.lang.Object visitMdmDimensionCalculationModel(MdmDimensionCalculationModel mdmObject, java.lang.Object context)
MdmDimensionCalculationModel
.mdmObject
- An MdmDimensionCalculationModel
.context
- An Object
.Object
.public java.lang.Object visitMdmDimensionedObjectModel(MdmDimensionedObjectModel mdmObject, java.lang.Object context)
MdmDimensionedObjectModel
.mdmObject
- An MdmDimensionedObjectModel
.context
- An Object
.Object
.public java.lang.Object visitMdmAttributeModel(MdmAttributeModel mdmObject, java.lang.Object context)
MdmAttributeModel
.mdmObject
- An MdmAttributeModel
.context
- An Object
.Object
.public java.lang.Object visitMdmMeasureModel(MdmMeasureModel mdmObject, java.lang.Object context)
MdmMeasureModel
.mdmObject
- An MdmMeasureModel
.context
- An Object
.Object
.public java.lang.Object visitMdmStandardMember(MdmStandardMember mdmObject, java.lang.Object context)
MdmStandardMember
.mdmObject
- An MdmStandardMember
.context
- An Object
.Object
.public java.lang.Object visitMdmTimeMember(MdmTimeMember mdmObject, java.lang.Object context)
MdmTimeMember
.mdmObject
- An MdmTimeMember
.context
- An Object
.Object
.
|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |