com.wewebu.ow.server.ecmimpl.cmis.generic
Interface OwCMISValueConverterClass<L,O>

All Known Implementing Classes:
OwCMISIDDMSIDConverter, OwCMISIdObjectConverterClass, OwCMISSameTypeConverter, OwCMISStandardDateConverter, OwP8CMISIDDMSIDConverter

public interface OwCMISValueConverterClass<L,O>

OwCMISValueConverter type/class object. Interface for conversion-definitions from type L (base) to O (resulting), and also to transform from array to list collections. A static/class definition of OwCMISValueConverters.

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
 Class<O> getOClass()
          Return the java.lang.Class which should be the resulting type at end of conversion.
 OwCMISValueConverter<L,O> newConverter(OwCMISNetwork network_p)
           
 O[] toStaticArrayValue(List<L> cmisValue_p)
          Statically converts the list into an array of the resulting type.
 O toStaticValue(List<L> cmisValue_p)
          Return a statically-created (non OwCMISNetwork depended) representation of the given List as type O or simply converts the first entry of the list into the resulting type.
 

Method Detail

getOClass

Class<O> getOClass()
Return the java.lang.Class which should be the resulting type at end of conversion.

Returns:
Class

newConverter

OwCMISValueConverter<L,O> newConverter(OwCMISNetwork network_p)
Parameters:
network_p - the OwCMISNetwork that the resulting converter depends on
Returns:
a converter object corresponding to this converter-class object

toStaticValue

O toStaticValue(List<L> cmisValue_p)
                throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Return a statically-created (non OwCMISNetwork depended) 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

toStaticArrayValue

O[] toStaticArrayValue(List<L> cmisValue_p)
                       throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Statically converts the list into an array of the resulting type. The conversion is non OwCMISNetwork depended.

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


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.