|
Spring LDAP Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConverterManager
A simple interface to be implemented to provide type conversion functionality.
Method Summary | ||
---|---|---|
boolean |
canConvert(Class<?> fromClass,
String syntax,
Class<?> toClass)
Determine whether this converter manager is able to carry out a specified conversion. |
|
|
convert(Object source,
String syntax,
Class<T> toClass)
Convert a given source object with an optional LDAP syntax to an instance of a given class. |
Method Detail |
---|
boolean canConvert(Class<?> fromClass, String syntax, Class<?> toClass)
fromClass
- Convert from the fromClass
.syntax
- Using the LDAP syntax (may be null).toClass
- To the toClass
.
True
if the conversion is supported, false
otherwise.<T> T convert(Object source, String syntax, Class<T> toClass)
T
- The class to convert to.source
- The object to convert.syntax
- The LDAP syntax to use (may be null).toClass
- The class to convert to.
ConverterException
- If the conversion can not be successfully completed.
|
Spring LDAP Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |