org.ujac.util.types
Class StringType

java.lang.Object
  extended by org.ujac.util.types.StringType
All Implemented Interfaces:
DataType

public class StringType
extends Object
implements DataType

Name: FloatType
Description: A class handling Float values.

Author:
lauerc

Constructor Summary
StringType()
           
 
Method Summary
 Object convertObject(Object value, FormatHelper formatHelper)
          Converts the given value into an instance of this type.
 String formatValue(Object value, FormatHelper formatHelper)
          FormatsConverts the given value into an instance of this type.
 int getTypeId()
          Gets the type ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringType

public StringType()
Method Detail

getTypeId

public int getTypeId()
Description copied from interface: DataType
Gets the type ID.

Specified by:
getTypeId in interface DataType
Returns:
The type ID.
See Also:
DataType.getTypeId()

convertObject

public Object convertObject(Object value,
                            FormatHelper formatHelper)
                     throws TypeConverterException
Description copied from interface: DataType
Converts the given value into an instance of this type.

Specified by:
convertObject in interface DataType
Parameters:
value - The value to convert.
formatHelper - The format helper to use.
Returns:
The according instance.
Throws:
TypeConverterException - In case the conversion failed.
See Also:
DataType.convertObject(java.lang.Object, org.ujac.util.text.FormatHelper)

formatValue

public String formatValue(Object value,
                          FormatHelper formatHelper)
                   throws TypeConverterException
Description copied from interface: DataType
FormatsConverts the given value into an instance of this type.

Specified by:
formatValue in interface DataType
Parameters:
value - The value to convert.
formatHelper - The format helper to use.
Returns:
The formatted value.
Throws:
TypeConverterException - In case the conversion failed.
See Also:
DataType.formatValue(java.lang.Object, org.ujac.util.text.FormatHelper)


Copyright © 2003-2004 UJAC.org. All Rights Reserved.