com.wewebu.ow.server.ecmimpl.opencmis.converter
Interface OwCMISValueConverter<L,O>

All Known Implementing Classes:
OwCMISDateConverter, OwCMISIDDMSIDConverter, OwCMISIdObjectConverter, OwCMISSameTypeConverter, OwP8CMISIDDMSIDConverter

public interface OwCMISValueConverter<L,O>

OwCMISValueConverter. Interface for conversion from type L (base) to O (resulting), and also to transform from array to list collections.

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


Method Summary
 List<L> fromArrayValue(Object[] owdValue_p)
          Converts the array back from type O to a list of type L.
 List<L> fromValue(O owdValue_p)
          Vice-versa conversion to toValue(List).
 O[] toArrayValue(List<L> cmisValue_p)
          Converts the list into an array of the resulting type.
 O toValue(List<L> 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.
 

Method Detail

toValue

O toValue(List<L> cmisValue_p)
          throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Return a representation of the given List as type O, or simply converts the first entry of the list into the resulting type.

Parameters:
cmisValue_p - List of values to convert
Returns:
Resulting type or null
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

fromValue

List<L> fromValue(O owdValue_p)
                  throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Vice-versa conversion to toValue(List).

Parameters:
owdValue_p - O resulting type, can be null
Returns:
List of base types, or empty list
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

toArrayValue

O[] toArrayValue(List<L> cmisValue_p)
                 throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Converts the list into an array of the resulting type.

Parameters:
cmisValue_p - List to be converted
Returns:
Array type O, or null
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

fromArrayValue

List<L> fromArrayValue(Object[] owdValue_p)
                       throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Converts the array back from type O to a list of type L.

Parameters:
owdValue_p - array of resulting type, can be null
Returns:
a list of base types, or empty list
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.