public class OwCMISSameTypeConverter<S> extends Object implements OwCMISValueConverter<S,S>
OwCMISSameTypeConverter. Simple list to array converter or list to single value, and vis versa.
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 |
---|
OwCMISSameTypeConverter(Class<S> oClass_p) |
Modifier and Type | Method and Description |
---|---|
List<S> |
fromArrayValue(Object[] owdValue_p)
Converts the array back from type O to a list of type L.
|
List<S> |
fromValue(S owdValue_p)
Vice-versa conversion to
OwCMISValueConverter.toValue(List) . |
S[] |
toArrayValue(List<S> cmisValue_p)
Converts the list into an array of the resulting type.
|
S[] |
toStaticArrayValue(List<S> cmisValue_p) |
S |
toStaticValue(List<S> cmisValue_p) |
S |
toValue(List<S> 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<S> fromArrayValue(Object[] owdValue_p)
OwCMISValueConverter
fromArrayValue
in interface OwCMISValueConverter<S,S>
owdValue_p
- array of resulting type, can be nullpublic List<S> fromValue(S owdValue_p)
OwCMISValueConverter
OwCMISValueConverter.toValue(List)
.fromValue
in interface OwCMISValueConverter<S,S>
owdValue_p
- O resulting type, can be nullpublic S[] toArrayValue(List<S> cmisValue_p)
OwCMISValueConverter
toArrayValue
in interface OwCMISValueConverter<S,S>
cmisValue_p
- List to be convertedpublic S toValue(List<S> cmisValue_p)
OwCMISValueConverter
toValue
in interface OwCMISValueConverter<S,S>
cmisValue_p
- List of values to convertCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.