Skip navigation links

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

E10794-06


oracle.olapi.metadata.mdm
Class MdmObject

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

All Implemented Interfaces:
MetadataObject
Direct Known Subclasses:
MdmAssignment, MdmCustomMember, MdmDimensionality, MdmModel, MdmNamedBuildProcess, MdmSchema, MdmSource

public abstract class MdmObject
extends BaseMetadataObject

An object that describes a particular set of data, such as a measure of product unit prices or a dimension of time values. This class is the basic implementation of the MetadataObject interface.

An MdmObject has only the most fundamental properties, so very few specific data characteristics are associated with it. An MdmObject has methods that get or set the following characteristics of the object.

In addition to a name, an MdmObject can have other decriptive words or phrases associated with it, such as a plural name or a short or long description. An MdmObject can also have one or more classifications. Classifications are assigned and handled by an application.

See Also:
MetadataObject

Method Summary
abstract  java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
          Calls a method of the specified MdmObjectVisitor and passes that method this MdmObject and an Object.
 void addDescription(MdmDescription desc)
          Adds an MdmDescription to the descriptions that are associated with this MdmObject.
 void addObjectClassification(java.lang.String classification)
          Adds a classification to the MdmObject.
 MdmDescription findOrCreateDescription(MdmDescriptionType type, java.lang.String language)
          Gets the MdmDescription of the specified type and language, if it exists.
 java.lang.String getDescription()
          Gets a descriptive phrase for this MdmObject.
 java.lang.String getDescription(MdmDescriptionType type)
          Gets a description of the specified type for this MdmObject in the default language for the current session.
 java.lang.String getDescription(MdmDescriptionType type, java.lang.String language)
          Gets a description of the specified type for this MdmObject in the specified.language.
 java.util.List getDescriptions()
          Gets the MdmDescription objects that are associated with this MdmObject.
 MdmMetadataProvider getMetadataProvider()
          Gets the MdmMetadataProvider for this MdmObject.
 java.lang.String getName()
          Gets the name of this MdmObject.
 java.lang.String getNewName()
          Gets the name of this MdmObject if you have changed the name of the object by using the setName method but you have not committed the root transaction that contains the name change.
 java.util.List getObjectClassifications()
          Gets a list of the classifications of the MdmObject.
 java.lang.String getShortDescription()
          Gets the short description for this MdmObject.
 boolean isClassifiedAs(java.lang.String classification)
          Indicates whether or not the MdmObject has the specified classification.
 void removeDescription(MdmDescription desc)
          Removes an MdmDescription from the descriptions that are associated with this MdmObject.
 void removeObjectClassification(java.lang.String classification)
          Removes a classification from the MdmObject.
 void setDescription(MdmDescriptionType type, java.lang.String value)
          Specifies a description of the specified type for this MdmObject in the default language for the current session.
 void setDescription(MdmDescriptionType type, java.lang.String language, java.lang.String value)
          Specifies a description of the specified type for this MdmObject in the specified language.
 void setDescription(java.lang.String description)
          Specifies a descriptive phrase for this MdmObject.
 void setName(java.lang.String name)
          Specifies a name for this MdmObject.
 void setShortDescription(java.lang.String description)
          Specifies a short description for this MdmObject.

 

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

 

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

 

Method Detail

acceptVisitor

public abstract java.lang.Object acceptVisitor(MdmObjectVisitor visitor,
                                               java.lang.Object context)
Calls a method of the specified MdmObjectVisitor and passes that method this MdmObject and an Object.
Parameters:
visitor - An MdmObjectVisitor.
context - An Object.
Returns:
The Object returned by a method of the MdmObjectVisitor.

getDescription

public final java.lang.String getDescription()
                                      throws oracle.express.mdm.MetadataNotFoundException
Gets a descriptive phrase for this MdmObject.
Returns:
A descriptive phrase for this MdmObject.
Throws:
oracle.express.mdm.MetadataNotFoundException - Indicates that the requested metadata object does not exist or is not available to the MdmMetadataProvider.

getMetadataProvider

public MdmMetadataProvider getMetadataProvider()
Gets the MdmMetadataProvider for this MdmObject.
Returns:
The MdmMetadataProvider for this MdmObject.

getName

public java.lang.String getName()
                         throws oracle.express.mdm.MetadataNotFoundException
Gets the name of this MdmObject.
Overrides:
getName in class BaseMetadataObject
Returns:
A String that contains the name of this MdmObject.
Throws:
oracle.express.mdm.MetadataNotFoundException - Indicates that the requested metadata object does not exist or is not available to the MdmMetadataProvider.

getShortDescription

public java.lang.String getShortDescription()
                                     throws oracle.express.mdm.MetadataNotFoundException
Gets the short description for this MdmObject. You can use this description for display in a graphical user interface instead of the return value of the getName method.
Returns:
A String containing the short description of this MdmObject.
Throws:
oracle.express.mdm.MetadataNotFoundException - Indicates that the requested metadata object does not exist or is not available to the MdmMetadataProvider.

setDescription

public final void setDescription(java.lang.String description)
Specifies a descriptive phrase for this MdmObject.
Parameters:
description - A String that contains a description for this MdmObject.

setName

public void setName(java.lang.String name)
Specifies a name for this MdmObject. If the MdmObject already has a name, the new name does not take effect until the root transaction is committed.
Parameters:
name - A String that contains a name for this MdmObject.

getNewName

public final java.lang.String getNewName()
Gets the name of this MdmObject if you have changed the name of the object by using the setName method but you have not committed the root transaction that contains the name change. If you have not changed the name of this MdmObject since you last committed the root transaction, this method returns null.
Overrides:
getNewName in class BaseMetadataObject
Returns:
The new name of this MdmObject, which takes effect after you commit the current root transaction, or null if you have not specified a new name.

setShortDescription

public void setShortDescription(java.lang.String description)
                         throws oracle.express.mdm.MetadataNotFoundException
Specifies a short description for this MdmObject. You can use this description for display in a graphical user interface instead of the return value of the getName method.
Parameters:
description - A String that contains a short description for this MdmObject.
Throws:
oracle.express.mdm.MetadataNotFoundException - Indicates that the requested metadata object does not exist or is not available to the MdmMetadataProvider.

getObjectClassifications

public final java.util.List getObjectClassifications()
Gets a list of the classifications of the MdmObject.
Returns:
A List of the classifications of the MdmObject.

addObjectClassification

public final void addObjectClassification(java.lang.String classification)
Adds a classification to the MdmObject.
Parameters:
classification - A String that contains the classification to add to the MdmObject.

removeObjectClassification

public final void removeObjectClassification(java.lang.String classification)
Removes a classification from the MdmObject.
Parameters:
classification - A String that contains the classification to remove from the MdmObject.

isClassifiedAs

public final boolean isClassifiedAs(java.lang.String classification)
Indicates whether or not the MdmObject has the specified classification.
Parameters:
classification - A String that contains the classification to compare to that of this MdmObject.
Returns:
A boolean that is true if the MdmObject has the specified classification or false if it does not.

getDescription

public final java.lang.String getDescription(MdmDescriptionType type)
Gets a description of the specified type for this MdmObject in the default language for the current session.
Parameters:
type - An MdmDescriptionType that specifies the type of description, such as name or long description.
Returns:
A String that contains the descriptive value of the MdmDescription associated with the specified MdmDescriptionType.

getDescription

public final java.lang.String getDescription(MdmDescriptionType type,
                                             java.lang.String language)
Gets a description of the specified type for this MdmObject in the specified.language.
Parameters:
type - An MdmDescriptionType that specifies the type of description, such as short name or plural description.
language - A String that specifies the language for the description.
Returns:
A String that contains the descriptive value of the MdmDescription associated with the specified MdmDescriptionType.

setDescription

public final void setDescription(MdmDescriptionType type,
                                 java.lang.String value)
Specifies a description of the specified type for this MdmObject in the default language for the current session.
Parameters:
type - An MdmDescriptionType that specifies the type of description, such as name or long description.
value - A String that contains the description for this MdmObject.

setDescription

public final void setDescription(MdmDescriptionType type,
                                 java.lang.String language,
                                 java.lang.String value)
Specifies a description of the specified type for this MdmObject in the specified language.
Parameters:
type - An MdmDescriptionType that specifies the type of description, such as name or long description.
language - A String that specifies the language for the description.
value - A String that contains the description for this MdmObject.

findOrCreateDescription

public MdmDescription findOrCreateDescription(MdmDescriptionType type,
                                              java.lang.String language)
Gets the MdmDescription of the specified type and language, if it exists. Otherwise, creates an MdmDescription of the specified type and language.
Parameters:
type - An MdmDescriptionType that specifies the type of description, such as name or long description.
language - A String that specifies the language for the description.
Returns:
An MdmDescription of specified type and language with the specified value.

getDescriptions

public final java.util.List getDescriptions()
Gets the MdmDescription objects that are associated with this MdmObject.
Returns:
A List of the MdmDescription objects associated with this MdmObject.

addDescription

public final void addDescription(MdmDescription desc)
Adds an MdmDescription to the descriptions that are associated with this MdmObject.
Parameters:
desc - The MdmDescription to add to this MdmObject.

removeDescription

public final void removeDescription(MdmDescription desc)
Removes an MdmDescription from the descriptions that are associated with this MdmObject.
Parameters:
desc - The MdmDescription to remove from this MdmObject.

Skip navigation links

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