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 ValueTypeNumber

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.ValueType
      extended by oracle.apps.fnd.applcore.flex.runtime.util.common.ValueTypeNumber

public class ValueTypeNumber
extends ValueType

A value type that represents a number.


Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.apps.fnd.applcore.flex.runtime.util.common.ValueType
ValueType.DataType
 
Constructor Summary
protected ValueTypeNumber()
          Constructs a value type NUMBER.
 
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.
 java.lang.String getFormatString()
          Gets the format string that can be recognized by oracle.apps.fnd.applcore.oaext.model.FlexfieldValueConverter.
 java.math.BigDecimal getMaximum()
          Gets the maximum value.
 java.math.BigDecimal getMinimum()
          Gets the minimum value.
 java.lang.Integer getPrecision()
          Gets the precision.
 java.lang.Integer getScale()
          Gets the scale.
 java.lang.String getToStringExpression(java.lang.Class objType, java.lang.String objName)
          Gets the "toString" expression for the given object reference.
 boolean isJavaTypeSupported(java.lang.Class javaType)
          Checks whether the given Java type can be used to store values of this value type.
protected  void setMaximum(java.math.BigDecimal max)
          Sets the maximum value.
protected  void setMinimum(java.math.BigDecimal min)
          Sets the minimum value.
protected  void setPrecision(java.lang.Integer p)
          Sets the precision.
protected  void setScale(java.lang.Integer s)
          Sets the scale.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class oracle.apps.fnd.applcore.flex.runtime.util.common.ValueType
getDataType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueTypeNumber

protected ValueTypeNumber()
Constructs a value type NUMBER.

Method Detail

isJavaTypeSupported

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

Specified by:
isJavaTypeSupported in class ValueType
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

getPrecision

public java.lang.Integer getPrecision()
Gets the precision.

Returns:
the precision

setPrecision

protected void setPrecision(java.lang.Integer p)
Sets the precision.

Parameters:
p - the precision

getScale

public java.lang.Integer getScale()
Gets the scale.

Returns:
the scale

setScale

protected void setScale(java.lang.Integer s)
Sets the scale.

Parameters:
s - the scale

getMaximum

public java.math.BigDecimal getMaximum()
Gets the maximum value.

Returns:
the maximum value

setMaximum

protected void setMaximum(java.math.BigDecimal max)
Sets the maximum value.

Parameters:
max - the maximum value

getMinimum

public java.math.BigDecimal getMinimum()
Gets the minimum value.

Returns:
the minimum value

setMinimum

protected void setMinimum(java.math.BigDecimal min)
Sets the minimum value.

Parameters:
min - the minimum value

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.

Overrides:
getToStringExpression in class ValueType
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.

Overrides:
formatDefaultValue in class ValueType
Parameters:
defaultValue - the default value from the metadata
targetJavaType - the Java type of the target attribute
Returns:
the formatted String

getFormatString

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

Specified by:
getFormatString in class ValueType
Returns:
the format string
See Also:
FlexfieldValueConverter

toString

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

Overrides:
toString in class ValueType
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.