com.wewebu.ow.server.ecmimpl.opencmis.converter
Class OwCMISIDDMSIDConverter

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.converter.OwCMISIDDMSIDConverter
All Implemented Interfaces:
OwCMISValueConverter<String,String>
Direct Known Subclasses:
OwP8CMISIDDMSIDConverter

public class OwCMISIDDMSIDConverter
extends Object
implements OwCMISValueConverter<String,String>

OwCMISIdDMSIDConverter.

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


Field Summary
protected  OwCMISDMSIDDecoder dmsidDecoder
           
protected  String resourceID
           
 
Constructor Summary
OwCMISIDDMSIDConverter(OwCMISDMSIDDecoder dmsidDecoder_p, String resourceID_p)
           
 
Method Summary
 List<String> fromArrayValue(Object[] owdValue_p)
          Converts the array back from type O to a list of type L.
protected  OwCMISDMSID fromID(String id_p)
          (overridable) Create an OwCMISDMSID instance from provided String.
 List<String> fromValue(String owdValue_p)
          Vice-versa conversion to OwCMISValueConverter.toValue(List).
 Class<String> getOClass()
           
 OwCMISValueConverter<String,String> newConverter(OwCMISNetwork network_p)
           
 String[] toArrayValue(List<String> cmisValue_p)
          Converts the list into an array of the resulting type.
 String[] toStaticArrayValue(List<String> cmisValue_p)
           
 String toStaticValue(List<String> cmisValue_p)
           
 String toValue(List<String> 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dmsidDecoder

protected OwCMISDMSIDDecoder dmsidDecoder

resourceID

protected String resourceID
Constructor Detail

OwCMISIDDMSIDConverter

public OwCMISIDDMSIDConverter(OwCMISDMSIDDecoder dmsidDecoder_p,
                              String resourceID_p)
Method Detail

fromArrayValue

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

Specified by:
fromArrayValue in interface OwCMISValueConverter<String,String>
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

fromValue

public List<String> fromValue(String owdValue_p)
                       throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Description copied from interface: OwCMISValueConverter
Vice-versa conversion to OwCMISValueConverter.toValue(List).

Specified by:
fromValue in interface OwCMISValueConverter<String,String>
Parameters:
owdValue_p - O resulting type, can be null
Returns:
List of base types, or empty list
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

getOClass

public Class<String> getOClass()

toArrayValue

public String[] toArrayValue(List<String> cmisValue_p)
Description copied from interface: OwCMISValueConverter
Converts the list into an array of the resulting type.

Specified by:
toArrayValue in interface OwCMISValueConverter<String,String>
Parameters:
cmisValue_p - List to be converted
Returns:
Array type O, or null

fromID

protected OwCMISDMSID fromID(String id_p)
(overridable) Create an OwCMISDMSID instance from provided String.

Parameters:
id_p - String representing object id
Returns:
OwCMISDMSID instance

toValue

public String toValue(List<String> cmisValue_p)
Description copied from interface: OwCMISValueConverter
Return a representation of the given List as type O, or simply converts the first entry of the list into the resulting type.

Specified by:
toValue in interface OwCMISValueConverter<String,String>
Parameters:
cmisValue_p - List of values to convert
Returns:
Resulting type or null

newConverter

public OwCMISValueConverter<String,String> newConverter(OwCMISNetwork network_p)

toStaticArrayValue

public String[] toStaticArrayValue(List<String> cmisValue_p)
                            throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

toStaticValue

public String toStaticValue(List<String> cmisValue_p)
                     throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.