oracle.owb.foundation.domain
Interface PrimitiveType

All Superinterfaces:
OWBNamedObject, ScalarType, Type

public interface PrimitiveType
extends ScalarType

PrimitiveType is the type used for primitive values.

Author:
Xiaoge Zhang

Method Summary
 java.lang.String getDefaultValueString()
          Return the default value in string format for this type.
 java.lang.Object getValue(java.lang.String s)
          Parse a string and return the value.
 java.lang.String toString(java.lang.Object o)
          Convert an Object to its String representation.
 
Methods inherited from interface oracle.owb.foundation.domain.Type
compare, equals, validate
 
Methods inherited from interface oracle.owb.foundation.OWBNamedObject
delete, getBusinessName, getClassDefinition, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName
 

Method Detail

getValue

public java.lang.Object getValue(java.lang.String s)
                          throws InvalidFormatException
Parse a string and return the value.
Parameters:
s - - The String representation of the object.
Returns:
Object - The real object.
Throws:
InvalidFormatException - - if the String is in invalid format.

toString

public java.lang.String toString(java.lang.Object o)
                          throws TypeMismatchException
Convert an Object to its String representation.
Parameters:
o - - The object
Returns:
String - The String representation for the object.
Throws:
TypeMismatchException - - if the object passed in is of incompartible type.

getDefaultValueString

public java.lang.String getDefaultValueString()
Return the default value in string format for this type.
Returns:
default value in string.