org.kuali.rice.kns.web.format
Class TimestampAMPMFormatter
java.lang.Object
org.kuali.rice.kns.web.format.Formatter
org.kuali.rice.kns.web.format.TimestampAMPMFormatter
- All Implemented Interfaces:
- Serializable
public class TimestampAMPMFormatter
- extends Formatter
This class is used to format timestamp objects.
- See Also:
- Serialized Form
Method Summary |
Object |
convertToObject(String target)
Unformats its argument and return a java.util.Date instance initialized with the resulting string. |
Object |
format(Object value)
Returns a string representation of its argument, formatted as a date with the "MM/dd/yyyy h:mm a" format. |
Methods inherited from class org.kuali.rice.kns.web.format.Formatter |
convertFromPresentationFormat, convertToArray, convertToCollection, findFormatter, formatArray, formatBean, formatCollection, formatForPresentation, formatNull, formatObject, formatterForType, getFormatter, getFormatter, getImplementationClass, getNullObjectValue, getPropertyType, getSettings, isBlank, isEmptyValue, isNullValue, isSupportedType, registerFormatter, setPropertyType, setSettings, trimString, unwrapString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimestampAMPMFormatter
public TimestampAMPMFormatter()
convertToObject
public Object convertToObject(String target)
- Unformats its argument and return a java.util.Date instance initialized with the resulting string.
- Overrides:
convertToObject
in class Formatter
- Returns:
- a java.util.Date intialized with the provided string
format
public Object format(Object value)
- Returns a string representation of its argument, formatted as a date with the "MM/dd/yyyy h:mm a" format.
- Overrides:
format
in class Formatter
- Returns:
- a formatted String
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.