public class OwCMISDateConverter extends Object implements OwCMISValueConverter<GregorianCalendar,Date>
OwCMISStandardDateConverter.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwCMISDateConverter(TimeZone timezone) |
| Modifier and Type | Method and Description |
|---|---|
List<GregorianCalendar> |
fromArrayValue(Object[] owdValue_p)
Converts the array back from type O to a list of type L.
|
List<GregorianCalendar> |
fromValue(Date owdValue_p)
Vice-versa conversion to
OwCMISValueConverter.toValue(List). |
Class<Date> |
getOClass() |
protected TimeZone |
getTimeZone()
Time zone of the client, which can be used for conversion.
|
Date[] |
toArrayValue(List<GregorianCalendar> cmisValue_p)
Converts the list into an array of the resulting type.
|
Date[] |
toStaticArrayValue(List<GregorianCalendar> cmisValue_p) |
Date |
toStaticValue(List<GregorianCalendar> cmisValue_p) |
Date |
toValue(List<GregorianCalendar> cmisValue_p)
Return a representation of the given List as type O,
or simply converts the first entry of the list into the resulting type.
|
public List<GregorianCalendar> fromArrayValue(Object[] owdValue_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
OwCMISValueConverterfromArrayValue in interface OwCMISValueConverter<GregorianCalendar,Date>owdValue_p - array of resulting type, can be nullcom.wewebu.ow.server.exceptions.OwInvalidOperationExceptionpublic List<GregorianCalendar> fromValue(Date owdValue_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
OwCMISValueConverterOwCMISValueConverter.toValue(List).fromValue in interface OwCMISValueConverter<GregorianCalendar,Date>owdValue_p - O resulting type, can be nullcom.wewebu.ow.server.exceptions.OwInvalidOperationExceptionpublic Date[] toArrayValue(List<GregorianCalendar> cmisValue_p)
OwCMISValueConvertertoArrayValue in interface OwCMISValueConverter<GregorianCalendar,Date>cmisValue_p - List to be convertedpublic Date toValue(List<GregorianCalendar> cmisValue_p)
OwCMISValueConvertertoValue in interface OwCMISValueConverter<GregorianCalendar,Date>cmisValue_p - List of values to convertpublic Date[] toStaticArrayValue(List<GregorianCalendar> cmisValue_p)
public Date toStaticValue(List<GregorianCalendar> cmisValue_p)
protected TimeZone getTimeZone()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.