to.etc.domui.converter
Class SecondDurationConverter

java.lang.Object
  extended by to.etc.domui.converter.SecondDurationConverter
All Implemented Interfaces:
IConverter<java.lang.Long>, IObjectToStringConverter<java.lang.Long>, IStringToObjectConverter<java.lang.Long>

public class SecondDurationConverter
extends java.lang.Object
implements IConverter<java.lang.Long>


Constructor Summary
SecondDurationConverter()
           
 
Method Summary
 java.lang.String convertObjectToString(java.util.Locale loc, java.lang.Long in)
           
 java.lang.Long convertStringToObject(java.util.Locale loc, java.lang.String input)
          Convert a duration in the format: [xD] hh:mm[:ss] into a duration in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecondDurationConverter

public SecondDurationConverter()
Method Detail

convertObjectToString

public java.lang.String convertObjectToString(java.util.Locale loc,
                                              java.lang.Long in)
                                       throws UIException
Specified by:
convertObjectToString in interface IObjectToStringConverter<java.lang.Long>
Throws:
UIException

convertStringToObject

public java.lang.Long convertStringToObject(java.util.Locale loc,
                                            java.lang.String input)
                                     throws UIException
Convert a duration in the format: [xD] hh:mm[:ss] into a duration in seconds.

Specified by:
convertStringToObject in interface IStringToObjectConverter<java.lang.Long>
Throws:
UIException
See Also:
IStringToObjectConverter.convertStringToObject(java.util.Locale, java.lang.String)