Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

oracle.apps.fnd.applcp.migrate.modeler.common
Class ValueSetDefImpl

java.lang.Object
  extended by oracle.apps.fnd.applcp.migrate.modeler.common.ValueSetDefImpl
All Implemented Interfaces:
ValueSetDef
Direct Known Subclasses:
CustomValueSetDefImpl

public class ValueSetDefImpl
extends java.lang.Object
implements ValueSetDef

A default implementation of ValueSetDef.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.apps.fnd.applcp.migrate.modeler.common.ValueSetDef
ValueSetDef.ValueSetType
 
Field Summary
 
Fields inherited from interface oracle.apps.fnd.applcp.migrate.modeler.common.ValueSetDef
TRANSIENT_VALUE_SET_ID
 
Constructor Summary
ValueSetDefImpl(long id, java.lang.String code, ValueSetDef.ValueSetType type, ValueType vt)
          Constructs a value-set definition.
ValueSetDefImpl(long id, java.lang.String code, ValueSetDef.ValueSetType type, ValueType vt, java.lang.String secCriteriaName)
          Constructs a value-set definition.
ValueSetDefImpl(java.lang.String code, ValueSetDef.ValueSetType type, ValueType vt)
          Constructs a transient value-set definition.
 
Method Summary
protected  void addSegmentLabelCode(java.lang.String labelCode)
          Adds a segment label code to the label code list.
 ValueSetUsage createUsage(boolean isNullAllowed)
          Creates a value-set usage of this value-set definition.
 java.lang.String getCode()
          Gets the code of the value set.
 java.lang.String getDataSecurityViewCriteriaName()
          Gets the name of the view criteria used for data security.
 long getID()
          Gets the ID of the value set.
 java.lang.Long getReferenceValueSetID()
          Gets the ID of the value-set referenced by this value-set.
 java.lang.String[] getSegmentLabelCodes()
          Gets the segment label codes associated with this value-set definition.
 ValueSetDef.ValueSetType getType()
          Gets the type of the value set.
 java.lang.String getUIControlType()
          Gets the preferred type of the UI control for this value set.
 ValueType getValueType()
          Gets the type of the values in this value set.
 boolean isDiscriminator()
          Whether this value set holds the discriminator values.
 boolean isJavaTypeSupported(java.lang.Class type)
          Checks whether values of a Java type are supported by this value set.
 boolean isTransient()
          Whether this value-set definition is transient.
protected  void setDataSecurityViewCriteriaName(java.lang.String name)
          Sets the name of view criteria used for data security.
protected  void setDiscriminator(boolean b)
          Sets the flag to indicate that this value set is for a discriminator.
protected  void setReferenceValueSetID(long id)
          Sets the value-set ID of the reference segment.
protected  void setUIControlType(java.lang.String type)
          Sets the preferred type of the UI control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueSetDefImpl

public ValueSetDefImpl(long id,
                       java.lang.String code,
                       ValueSetDef.ValueSetType type,
                       ValueType vt)
Constructs a value-set definition.

Parameters:
id - the value-set ID
code - the value-set code
type - the value-set type
vt - the value type
Throws:
java.lang.IllegalArgumentException - if given ID, code, type or value type is invalid

ValueSetDefImpl

public ValueSetDefImpl(long id,
                       java.lang.String code,
                       ValueSetDef.ValueSetType type,
                       ValueType vt,
                       java.lang.String secCriteriaName)
Constructs a value-set definition.

Parameters:
id - the value-set ID
code - the value-set code
type - the value-set type
vt - the value type
secCriteriaName - the name of the data security view criteria
Throws:
java.lang.IllegalArgumentException - if given ID, code, type or value type is invalid

ValueSetDefImpl

public ValueSetDefImpl(java.lang.String code,
                       ValueSetDef.ValueSetType type,
                       ValueType vt)
Constructs a transient value-set definition.

Parameters:
code - the value-set code
type - the value-set type
vt - the value type
Method Detail

getID

public final long getID()
Gets the ID of the value set. If the ID is TRANSIENT_VALUE_SET_ID, this value set is a transient value set. All transient value sets share the same ID.

Specified by:
getID in interface ValueSetDef
Returns:
the ID of the value set

getCode

public final java.lang.String getCode()
Gets the code of the value set.

Specified by:
getCode in interface ValueSetDef
Returns:
the code of the value set

getType

public final ValueSetDef.ValueSetType getType()
Gets the type of the value set.

Specified by:
getType in interface ValueSetDef
Returns:
the type of the value set

getValueType

public final ValueType getValueType()
Gets the type of the values in this value set.

Specified by:
getValueType in interface ValueSetDef
Returns:
the type of the values

isTransient

public final boolean isTransient()
Whether this value-set definition is transient.

Specified by:
isTransient in interface ValueSetDef
Returns:
true if this value-set definition is transient

isDiscriminator

public final boolean isDiscriminator()
Whether this value set holds the discriminator values.

Specified by:
isDiscriminator in interface ValueSetDef
Returns:
true if this value set holds the discriminator values

setDiscriminator

protected void setDiscriminator(boolean b)
Sets the flag to indicate that this value set is for a discriminator.

Parameters:
b - true if this value set is for a discriminator

getUIControlType

public java.lang.String getUIControlType()
Gets the preferred type of the UI control for this value set.

Specified by:
getUIControlType in interface ValueSetDef
Returns:
the preferred type of the UI control

setUIControlType

protected void setUIControlType(java.lang.String type)
Sets the preferred type of the UI control.

Parameters:
type - the preferred type of the UI control

getReferenceValueSetID

public java.lang.Long getReferenceValueSetID()
Gets the ID of the value-set referenced by this value-set.

Specified by:
getReferenceValueSetID in interface ValueSetDef
Returns:
the reference value-set ID; null if this value-set does not reference any other value set

setReferenceValueSetID

protected void setReferenceValueSetID(long id)
Sets the value-set ID of the reference segment.

Parameters:
id - the value-set ID of the reference segment

isJavaTypeSupported

public boolean isJavaTypeSupported(java.lang.Class type)
Checks whether values of a Java type are supported by this value set.

Specified by:
isJavaTypeSupported in interface ValueSetDef
Parameters:
type - the JAva type
Returns:
true if values of the given Java type are supported by this value set

createUsage

public ValueSetUsage createUsage(boolean isNullAllowed)
Creates a value-set usage of this value-set definition.

Specified by:
createUsage in interface ValueSetDef
Parameters:
isNullAllowed - true if null value is allowed
Returns:
a value-set usage

addSegmentLabelCode

protected void addSegmentLabelCode(java.lang.String labelCode)
Adds a segment label code to the label code list. If the label code is already in the list, it will not be repeated.

Parameters:
labelCode - the label code
Throws:
java.lang.IllegalArgumentException - if the given label code is null

getSegmentLabelCodes

public java.lang.String[] getSegmentLabelCodes()
Gets the segment label codes associated with this value-set definition. This is not a complete list. This list is specific to a flexfield that uses this value set. This list is used to determine which value attributes this value set should provide for a given flexfield.

Specified by:
getSegmentLabelCodes in interface ValueSetDef
Returns:
the segment label codes associated with this value-set definition; an empty array if no label code is involved.

getDataSecurityViewCriteriaName

public java.lang.String getDataSecurityViewCriteriaName()
Gets the name of the view criteria used for data security.

Specified by:
getDataSecurityViewCriteriaName in interface ValueSetDef
Returns:
the name of the view criteria used for data security; null if this value set is not secured

setDataSecurityViewCriteriaName

protected void setDataSecurityViewCriteriaName(java.lang.String name)
Sets the name of view criteria used for data security.

Parameters:
name - the name of the view criteria

Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

Copyright © 2011 Oracle. All Rights Reserved.