Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.flex.bi
Class DiscriminatorValue

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.bi.DiscriminatorValue
All Implemented Interfaces:
java.lang.Comparable<DiscriminatorValue>

public class DiscriminatorValue
extends java.lang.Object
implements java.lang.Comparable<DiscriminatorValue>

A discriminator value. For key flexfields, the key is the structure instance number and the alternate key is the structure instance code. For descriptive flexfields, the key is the context value and there is no alternate key.


Field Summary
protected  java.lang.Object altKey
          The alternate key of this value; null if there is no alternate key.
protected  java.lang.Object key
          The key of this value.
 
Constructor Summary
DiscriminatorValue(java.lang.Object key)
          Constructs a discriminator value with a key.
DiscriminatorValue(java.lang.Object key, java.lang.Object altKey)
          Constructs a discriminator value with a key and alternate key.
 
Method Summary
 int compareTo(DiscriminatorValue o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object getAltKey()
          Gets the alternative key.
 java.lang.Object getKey()
          Gets the key.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected final java.lang.Object key
The key of this value.


altKey

protected final java.lang.Object altKey
The alternate key of this value; null if there is no alternate key.

Constructor Detail

DiscriminatorValue

public DiscriminatorValue(java.lang.Object key,
                          java.lang.Object altKey)
Constructs a discriminator value with a key and alternate key.

Parameters:
key - the key
altKey - the alternate key
Throws:
java.lang.IllegalArgumentException - if the key or alternate key is null

DiscriminatorValue

public DiscriminatorValue(java.lang.Object key)
Constructs a discriminator value with a key.

Parameters:
key - the key
Throws:
java.lang.IllegalArgumentException - if the given key is null
Method Detail

getKey

public final java.lang.Object getKey()
Gets the key.

Returns:
the key, which is never null

getAltKey

public final java.lang.Object getAltKey()
Gets the alternative key.

Returns:
the alternative key; null if there is no alternative key

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(DiscriminatorValue o)
Specified by:
compareTo in interface java.lang.Comparable<DiscriminatorValue>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.