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

E22562-07

oracle.apps.fnd.applcore.flex.runtime.util.common
Class ValueType

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.ValueType
Direct Known Subclasses:
ValueTypeCharacter, ValueTypeNumber, ValueTypeUtilDate

public abstract class ValueType
extends java.lang.Object

The type of a flexfield segment value.


Nested Class Summary
static class ValueType.DataType
          Value data types.
 
Constructor Summary
protected ValueType(ValueType.DataType dataType)
          Constructs a value type.
 
Method Summary
 java.lang.String formatDefaultValue(java.lang.String defaultValue, java.lang.Class targetJavaType)
          Formats the default value so that the formatted String can be parsed at runtime into an object that can be applied to the target attribute.
 ValueType.DataType getDataType()
          Gets the data type of the value.
abstract  java.lang.String getFormatString()
          Gets the format string that can be recognized by oracle.apps.fnd.applcore.oaext.model.FlexfieldValueConverter.
 java.lang.String getToStringExpression(java.lang.Class objType, java.lang.String objName)
          Gets the "toString" expression for the given object reference.
abstract  boolean isJavaTypeSupported(java.lang.Class javaType)
          Checks whether the given Java type can be used to store values of this value type.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueType

protected ValueType(ValueType.DataType dataType)
Constructs a value type.

Method Detail

getDataType

public ValueType.DataType getDataType()
Gets the data type of the value.

Returns:
the data type

getFormatString

public abstract java.lang.String getFormatString()
Gets the format string that can be recognized by oracle.apps.fnd.applcore.oaext.model.FlexfieldValueConverter.

Returns:
the format string
See Also:
FlexfieldValueConverter

isJavaTypeSupported

public abstract boolean isJavaTypeSupported(java.lang.Class javaType)
Checks whether the given Java type can be used to store values of this value type.

Parameters:
javaType - the Java type to be checked
Returns:
true if the given Java type can be used to store values of this value type

getToStringExpression

public java.lang.String getToStringExpression(java.lang.Class objType,
                                              java.lang.String objName)
Gets the "toString" expression for the given object reference. A "toString" method converts the object to a string that can be recognized as a value of this value type. Evaluation of the return expression always results in a String object.

Parameters:
objType - the java type of the object
objName - the name of the object
Returns:
the "toString" expression

formatDefaultValue

public java.lang.String formatDefaultValue(java.lang.String defaultValue,
                                           java.lang.Class targetJavaType)
Formats the default value so that the formatted String can be parsed at runtime into an object that can be applied to the target attribute.

Parameters:
defaultValue - the default value from the metadata
targetJavaType - the Java type of the target attribute
Returns:
the formatted String

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this object

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.