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

E22563-02

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

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

public class ValueTypeCharacter
extends ValueType

A value type that represents a string.


Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.apps.fnd.applcp.migrate.modeler.common.ValueType
ValueType.ValueFormat
 
Constructor Summary
protected ValueTypeCharacter()
          Constructs a CHARACTER 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.
 boolean isJavaTypeSupported(java.lang.Class javaType)
          Checks whether the given Java type can be used to store values of this value type.
 boolean isNumericOnly()
          Returns true if a value should only have numeric characters.
 boolean isUppercaseOnly()
          Returns true if a value should only have uppercase characters.
 boolean isZeroFilled()
          Returns true if a value should be left-padded with zeros.
protected  void setMaximumLength(int len)
          Sets the maximum length.
protected  void setNumericOnly(boolean b)
          Sets the numeric-only flag.
protected  void setUppercaseOnly(boolean b)
          Sets the uppercase-only flag.
protected  void setZeroFilled(boolean b)
          Sets the zero-filled flag.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class oracle.apps.fnd.applcp.migrate.modeler.common.ValueType
getFormat, getToStringExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueTypeCharacter

protected ValueTypeCharacter()
Constructs a CHARACTER 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

getMaximumLength

public int getMaximumLength()
Gets the maximum length.

Returns:
the maximum length

setMaximumLength

protected void setMaximumLength(int len)
Sets the maximum length.

Parameters:
len - the maximum length

isUppercaseOnly

public boolean isUppercaseOnly()
Returns true if a value should only have uppercase characters.

Returns:
true if a value should only have uppercase characters.

setUppercaseOnly

protected void setUppercaseOnly(boolean b)
Sets the uppercase-only flag.

Parameters:
b - true if a value should only have uppercase characters.

isNumericOnly

public boolean isNumericOnly()
Returns true if a value should only have numeric characters.

Returns:
true if a value should only have numeric characters.

setNumericOnly

protected void setNumericOnly(boolean b)
Sets the numeric-only flag.

Parameters:
b - true if a value should only have numeric characters.

isZeroFilled

public boolean isZeroFilled()
Returns true if a value should be left-padded with zeros.

Returns:
true if a value should be left-padded with zeros.

setZeroFilled

protected void setZeroFilled(boolean b)
Sets the zero-filled flag.

Parameters:
b - true if a value should be left-padded with zeros.

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.