SMILA (incubation) API documentation

org.eclipse.smila.management.jmx.client.converters
Class DateConverter

java.lang.Object
  extended by org.eclipse.smila.management.jmx.client.converters.DateConverter

public class DateConverter
extends java.lang.Object

The Class DateConverter.


Field Summary
static java.lang.String DATE_PATTERN
          The Constant DATE_PATTERN.
static java.lang.String SHORT_DATE_PATTERN
          The Constant SHORT_DATE_PATTERN.
 
Constructor Summary
DateConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Class type, java.lang.Object value)
          
protected  java.lang.Object convertToDate(java.lang.Class type, java.lang.Object value)
          Convert to date.
protected  java.lang.Object convertToString(java.lang.Class type, java.lang.Object value)
          Convert to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_PATTERN

public static final java.lang.String DATE_PATTERN
The Constant DATE_PATTERN.

See Also:
Constant Field Values

SHORT_DATE_PATTERN

public static final java.lang.String SHORT_DATE_PATTERN
The Constant SHORT_DATE_PATTERN.

See Also:
Constant Field Values
Constructor Detail

DateConverter

public DateConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Class type,
                                java.lang.Object value)

See Also:
org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)

convertToDate

protected java.lang.Object convertToDate(java.lang.Class type,
                                         java.lang.Object value)
Convert to date.

Parameters:
type - the type
value - the value
Returns:
the object

convertToString

protected java.lang.Object convertToString(java.lang.Class type,
                                           java.lang.Object value)
Convert to string.

Parameters:
type - the type
value - the value
Returns:
the object

SMILA (incubation) API documentation