Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-01


oracle.olapi.data.source
Class LiteralQualification

java.lang.Object
  extended by oracle.olapi.data.source.Qualification
      extended by oracle.olapi.data.source.LiteralQualification


public class LiteralQualification
extends Qualification

A Qualification that specifies a literal value, such as an Integer, Boolean, or String literal, that identifies an element of a Source for an Assignment of a Model.

An example is the following, which creates a LiteralQualification that specifies a member of the Product dimension, and then assigns a value for that member to the Model for the Unit Price measure. In the example, productDim is the Source for the MdmPrimaryDimension for the Product dimension, unitPriceModel is the MdmMeasureModel for the Unit Price measure, and dp is the DataProvider.

 LiteralQualification prodQual = new LiteralQualification(
                                         productDim, 
                                         "PRODUCT_PRIMARY::FAMILY::OS");
 unitPriceModel.assign(prodQual, dp.createConstantSource(75));

Constructor Summary
LiteralQualification(Source qualifiedSource, java.lang.Object literal)
          Creates a LiteralQualification object that qualifies a Source by specifying a single element of that Source.

 

Method Summary
 java.lang.Object getLiteral()
          Gets the literal value of this LiteralQualification.

 

Methods inherited from class oracle.olapi.data.source.Qualification
getQualifiedSource

 

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

 

Constructor Detail

LiteralQualification

public LiteralQualification(Source qualifiedSource,
                            java.lang.Object literal)
Creates a LiteralQualification object that qualifies a Source by specifying a single element of that Source. The Source must be an input of the Model associated with the Assignment with which the LiteralQualification is associated.
Parameters:
qualifiedSource - A Source that has the element for which you want to assign a value.
literal - The literal value of the qualifiedSource element for which you want to assign a value.

Method Detail

getLiteral

public final java.lang.Object getLiteral()
Gets the literal value of this LiteralQualification.
Returns:
An Object that represents the literal value of the qualified Source of this LiteralQualification.

Skip navigation links

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