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

E22563-02

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

java.lang.Object
  extended by oracle.apps.fnd.applcp.migrate.modeler.common.ValueType
      extended by oracle.apps.fnd.applcp.migrate.modeler.common.ValueTypeUtilDate
          extended by oracle.apps.fnd.applcp.migrate.modeler.common.ValueTypeTime

public class ValueTypeTime
extends ValueTypeUtilDate

A value type that represents time.


Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.apps.fnd.applcp.migrate.modeler.common.ValueType
ValueType.ValueFormat
 
Constructor Summary
protected ValueTypeTime(int maxlen)
          Constructs a TIME 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.
 java.lang.String getFormatString()
          Gets the format string that can be recognized by oracle.apps.fnd.applcore.oaext.model.FlexfieldValueConverter.
 int getMaximumLength()
          Gets the maximum length of the string representation.
 java.lang.String getParseMethodName()
          Gets the full name of the static parse method.
 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.
 java.util.Date parse(java.lang.String s)
          Parses the given string and returns a date.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class oracle.apps.fnd.applcp.migrate.modeler.common.ValueTypeUtilDate
getMaximum, getMinimum, setMaximum, setMinimum
 
Methods inherited from class oracle.apps.fnd.applcp.migrate.modeler.common.ValueType
getFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueTypeTime

protected ValueTypeTime(int maxlen)
Constructs a TIME value type.

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

parse

public java.util.Date parse(java.lang.String s)
Parses the given string and returns a date.

Specified by:
parse in class ValueTypeUtilDate
Parameters:
s - the string to be parsed
Returns:
the date

getParseMethodName

public java.lang.String getParseMethodName()
Gets the full name of the static parse method. The parse method should return a java.util.Date.

Specified by:
getParseMethodName in class ValueTypeUtilDate
Returns:
the full name of the parse method

getMaximumLength

public int getMaximumLength()
Gets the maximum length of the string representation.

Returns:
the maximum length of the string representation

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 Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

Copyright © 2011 Oracle. All Rights Reserved.