Skip navigation links

Oracle® OLAP Java API Reference
11g Release 2 (11.2)

E10794-06


oracle.olapi.metadata.mdm
Class MdmDescription

java.lang.Object
  extended by oracle.olapi.metadata.BaseMetadataObject
      extended by oracle.olapi.metadata.mdm.MdmDescription

All Implemented Interfaces:
MetadataObject

public final class MdmDescription
extends BaseMetadataObject

A BaseMetadataObject that represents a description for an MdmObject. The Oracle OLAP Java API provides various types of descriptions, which are represented by instances of the MdmDescriptionType class. That class has static methods that return objects that represent a type of description, such as a name, a long name, a description, a short description, and others. An application can add to the available types of description by defining a new MdmDescriptionType.

To find or create an MdmDescription, use the findOrCreateDescription method of an MdmObject. See the getType method for an example.


Method Summary
 MdmObject getDescribedObject()
          Gets the MdmObject that this MdmDescription describes.
 java.lang.String getLanguage()
          Gets the language that is associated with this MdmDescription.
 java.lang.String getName()
          Gets the name of this MetadataObject.
 java.lang.String getType()
          Gets the type of description that this MdmDescription represents.
 java.lang.String getValue()
          Gets the value that of this MdmDescription.
 void setValue(java.lang.String value)
          Specifies the value of this MdmDescription.

 

Methods inherited from class oracle.olapi.metadata.BaseMetadataObject
getContainedByObject, getID, getNewName, getOwner

 

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

 

Method Detail

getType

public final java.lang.String getType()
Gets the type of description that this MdmDescription represents. For example, the following code gets the type of an MdmDescription for mdmStdDim, which is an MdmStandardDimension.
 MdmDescription mdmDescr = 
      mdmStdDim.findOrCreateDescription(
                          MdmDescriptionType.getShortNameDescriptionType(),
                          "AMERICAN",
                          "MyDim");
 String type =  mdmDescr.getType();
 System.out.println("The type of the MdmDescription is " + type + ".");
The output of the example is the following.
 The type of the MdmDescription is ShortName.
Returns:
A String that contains the type of description of this MdmDescription.

getLanguage

public final java.lang.String getLanguage()
Gets the language that is associated with this MdmDescription.
Returns:
A String that identifies the language associated with this MdmDescription.

getValue

public final java.lang.String getValue()
Gets the value that of this MdmDescription.
Returns:
A String that is the value of this MdmDescription.

setValue

public final void setValue(java.lang.String value)
Specifies the value of this MdmDescription.
Parameters:
value - A String that specifies the value for this MdmDescription.

getDescribedObject

public final MdmObject getDescribedObject()
Gets the MdmObject that this MdmDescription describes.
Returns:
The MdmObject that owns this MdmDescription.

getName

public java.lang.String getName()
Gets the name of this MetadataObject.
Overrides:
getName in class BaseMetadataObject
Returns:
A String that contains the name of this MetadataObject.

Skip navigation links

Copyright © 2002, 2010, Oracle. All rights reserved.