org.alfresco.web.ui.common.converter
Class XMLDateConverter

java.lang.Object
  extended by javax.faces.convert.DateTimeConverter
      extended by org.alfresco.web.ui.common.converter.XMLDateConverter
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.convert.Converter

public class XMLDateConverter
extends javax.faces.convert.DateTimeConverter

Converter class to convert an XML date representation into a Date


Field Summary
static java.lang.String CONVERTER_ID
          The standard converter id for this converter.
 
Constructor Summary
XMLDateConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
           
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           
 java.util.Locale getLocale()
           
 java.util.TimeZone getTimeZone()
           
 
Methods inherited from class javax.faces.convert.DateTimeConverter
getDateStyle, getPattern, getTimeStyle, getType, isTransient, restoreState, saveState, setDateStyle, setLocale, setPattern, setTimeStyle, setTimeZone, setTransient, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONVERTER_ID

public static final java.lang.String CONVERTER_ID

The standard converter id for this converter.

See Also:
Constant Field Values
Constructor Detail

XMLDateConverter

public XMLDateConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
Specified by:
getAsObject in interface javax.faces.convert.Converter
Overrides:
getAsObject in class javax.faces.convert.DateTimeConverter
See Also:
Converter.getAsObject(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object value)
Specified by:
getAsString in interface javax.faces.convert.Converter
Overrides:
getAsString in class javax.faces.convert.DateTimeConverter
See Also:
Converter.getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)

getTimeZone

public java.util.TimeZone getTimeZone()
Overrides:
getTimeZone in class javax.faces.convert.DateTimeConverter
See Also:
DateTimeConverter.getTimeZone()

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class javax.faces.convert.DateTimeConverter
See Also:
DateTimeConverter.getLocale()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.