|
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 |
A visitor object that can execute operations on some of the 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.
MdmObjectVisitor
has a visit method for most 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 MdmObjectVisitor
. The acceptVisitor
method passes the MdmObject
and the context
to the visit method. For example, you could call the acceptVisitor
method on an MdmSchema
and pass it your MdmObjectVisitor
and context
objects. The acceptVisitor
method would then pass the MdmSchema
and the context
you passed it to the visitMdmSchema
method of your MdmObjectVisitor
.
A visit method of your MdmObjectVisitor
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 visitMdmSchema
method might call the getSubSchemas
method on the MdmSchema
, 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 |
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 |
visitMdmSchema(MdmSchema mdmObject, java.lang.Object context) Executes operations on the specified MdmSchema . |
java.lang.Object |
visitMdmStandardDimension(MdmStandardDimension mdmObject, java.lang.Object context) Executes operations on the specified MdmStandardDimension . |
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 . |
Method Detail |
public java.lang.Object visitMdmAttribute(MdmAttribute mdmObject, java.lang.Object context)
MdmAttribute
.mdmObject
- An MdmAttribute
.context
- An Object
.Object
.public java.lang.Object visitMdmLevel(MdmLevel mdmObject, java.lang.Object context)
MdmLevel
.mdmObject
- An MdmLevel
.context
- An Object
.Object
.public java.lang.Object visitMdmLevelHierarchy(MdmLevelHierarchy mdmObject, java.lang.Object context)
MdmLevelHierarchy
.mdmObject
- An MdmLevelHierarchy
.context
- An Object
.Object
.public java.lang.Object visitMdmMeasure(MdmMeasure mdmObject, java.lang.Object context)
MdmMeasure
.mdmObject
- An MdmMeasure
.context
- An Object
.Object
.public java.lang.Object visitMdmMeasureDimension(MdmMeasureDimension mdmObject, java.lang.Object context)
MdmMeasureDimension
.mdmObject
- An MdmMeasureDimension
.context
- An Object
.Object
.public java.lang.Object visitMdmSchema(MdmSchema mdmObject, java.lang.Object context)
MdmSchema
.mdmObject
- An MdmSchema
.context
- An Object
.Object
.public java.lang.Object visitMdmStandardDimension(MdmStandardDimension mdmObject, java.lang.Object context)
MdmStandardDimension
.mdmObject
- An MdmStandardDimension
.context
- An Object
.Object
.public java.lang.Object visitMdmTimeDimension(MdmTimeDimension mdmObject, java.lang.Object context)
MdmTimeDimension
.mdmObject
- An MdmTimeDimension
.context
- An Object
.Object
.public java.lang.Object visitMdmValueHierarchy(MdmValueHierarchy mdmObject, java.lang.Object context)
MdmValueHierarchy
.mdmObject
- An MdmValueHierarchy
.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 |