com.wewebu.ow.server.ecmimpl.cmis.util
Class OwCMISIDDMSIDConverter

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

public class OwCMISIDDMSIDConverter
extends Object
implements OwCMISValueConverter<String,String>, OwCMISValueConverterClass<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(String[] owdValue_p)
          Converts the array back from type O to a list of type L.
protected  OwCMISDMSID fromID(String id_p)
           
 List<String> fromValue(String owdValue_p)
          Vice-versa conversion to OwCMISValueConverter.toValue(List).
 OwCMISValueConverterClass<String,String> getConverterClass()
           
 Class<String> getOClass()
          Return the java.lang.Class which should be the resulting type at end of conversion.
 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)
          Statically converts the list into an array of the resulting type.
 String toStaticValue(List<String> 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.
 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(String[] 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()
Description copied from interface: OwCMISValueConverterClass
Return the java.lang.Class which should be the resulting type at end of conversion.

Specified by:
getOClass in interface OwCMISValueConverterClass<String,String>
Returns:
Class

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)

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

getConverterClass

public OwCMISValueConverterClass<String,String> getConverterClass()
Specified by:
getConverterClass in interface OwCMISValueConverter<String,String>
Returns:
the class/definition object of this converter

newConverter

public OwCMISValueConverter<String,String> newConverter(OwCMISNetwork network_p)
Specified by:
newConverter in interface OwCMISValueConverterClass<String,String>
Parameters:
network_p - the OwCMISNetwork that the resulting converter depends on
Returns:
a converter object corresponding to this converter-class object

toStaticArrayValue

public String[] toStaticArrayValue(List<String> cmisValue_p)
                            throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Description copied from interface: OwCMISValueConverterClass
Statically converts the list into an array of the resulting type. The conversion is non OwCMISNetwork depended.

Specified by:
toStaticArrayValue in interface OwCMISValueConverterClass<String,String>
Parameters:
cmisValue_p - List to be converted
Returns:
Array type O, or null
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

toStaticValue

public String toStaticValue(List<String> cmisValue_p)
                     throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Description copied from interface: OwCMISValueConverterClass
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.

Specified by:
toStaticValue in interface OwCMISValueConverterClass<String,String>
Parameters:
cmisValue_p - List of values to convert
Returns:
Resulting type or null
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.