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

B10994-01

oracle.olapi.metadata.mdm
Class MdmMeasureDimension

java.lang.Object
  |
  +--oracle.olapi.metadata.BaseMetadataObject
        |
        +--oracle.olapi.metadata.mdm.MdmObject
              |
              +--oracle.olapi.metadata.mdm.MdmSource
                    |
                    +--oracle.olapi.metadata.mdm.MdmDimension
                          |
                          +--oracle.olapi.metadata.mdm.MdmPrimaryDimension
                                |
                                +--oracle.olapi.metadata.mdm.MdmMeasureDimension

public final class MdmMeasureDimension
extends MdmPrimaryDimension

An MdmPrimaryDimension that specifies the MdmMeasure objects available through an MdmMetadataProvider. An MdmMeasureDimension has a single MdmLevelHierarchy component, which has a single MdmLevel component. The elements of the MdmLevel have the MdmMeasure objects as values.

You get the MdmMeasureDimension by calling the getMeasureDimension method on the top-level, or root, MdmSchema of the MdmMetadataProvider that you are using. You get the root MdmSchema by calling the getRootSchema method on the MdmMetadataProvider.


Method Summary
 java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
          Calls the visitMdmMeasureDimension method on the specified MdmObjectVisitor and passes that method this MdmObject and the specified context object.
 void addMeasure(MdmMeasure measure)
          Adds an MdmMeasure to this MdmMeasureDimension.
 java.util.List getMeasures()
          Gets a List that contains the MdmMeasure objects that are the values of the elements of the MdmLevelHierarchy that is the sole component of this MdmMeasureDimension.
 void removeMeasure(MdmMeasure measure)
          Removes the specified MdmMeasure from this MdmMeasureDimension.

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmPrimaryDimension
createBooleanAttribute, createBooleanAttribute, createDateAttribute, createDateAttribute, createLevelHierarchy, createNumericAttribute, createNumericAttribute, createSolvedLevelHierarchy, createStringAttribute, createStringAttribute, createUnsolvedLevelHierarchy, createValueHierarchy, getAncestorsAttribute, getDefaultHierarchy, getHierarchies, getLevelAttribute, getLevelDepthAttribute, getLocalValueAttribute, getParentAttribute, getPrimaryDimension, getShortValueDescriptionAttribute, getValueDescriptionAttribute, getValueSeparationString, removeHierarchy, setDefaultHierarchy, setShortValueDescriptionAttribute, setValueDescriptionAttribute, setValueSeparationString

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmDimension
getAttributes, getCardinality, getPluralDescription, getShortPluralDescription, removeAttribute, setCardinality, setPluralDescription, setShortPluralDescription

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmSource
getDataType, getSource, getSourceMap, getType

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmObject
getDescription, getMetadataProvider, getName, getShortDescription, setDescription, setName, setShortDescription

 

Methods inherited from class oracle.olapi.metadata.BaseMetadataObject
getID

 

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

 

Method Detail

acceptVisitor

public java.lang.Object acceptVisitor(MdmObjectVisitor visitor,
                                      java.lang.Object context)
Calls the visitMdmMeasureDimension method on the specified MdmObjectVisitor and passes that method this MdmObject and the specified context object.
Parameters:
visitor - An MdmObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitMdmMeasureDimension method.
Overrides:
acceptVisitor in class MdmObject

getMeasures

public final java.util.List getMeasures()
Gets a List that contains the MdmMeasure objects that are the values of the elements of the MdmLevelHierarchy that is the sole component of this MdmMeasureDimension.
Returns:
A List containing all the MdmMeasure objects of the MdmLevelHierarchy component of this MdmMeasureDimension.

addMeasure

public void addMeasure(MdmMeasure measure)
Adds an MdmMeasure to this MdmMeasureDimension. You create an MdmMeasure with a method, such as the createStringMeasure method, of an MdmCustomObjectFactory.
Parameters:
measure - A custom MdmMeasure returned by a method of an MdmCustomObjectFactory.

removeMeasure

public void removeMeasure(MdmMeasure measure)
Removes the specified MdmMeasure from this MdmMeasureDimension.
Parameters:
measure - The MdmMeasure to remove.

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

B10994-01

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