|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jbeans.data.converter.DataConverterManager
generally describe DataConverterManager in here
| Constructor Summary | |
DataConverterManager()
|
|
| Method Summary | |
static java.lang.Object |
convert(java.lang.Object source,
java.lang.Class targetType)
|
static DataConverter |
findConverter(java.lang.Class sourceType,
java.lang.Class targetType)
Locate a data converter for a given source and target types. |
static java.lang.String[] |
getConverterSearchPath()
Gets the package names that will be searched for data converters. |
static boolean |
isThereConverFor(java.lang.Class sourceType,
java.lang.Class targetType)
|
static void |
main(java.lang.String[] args)
|
static void |
registerConverter(java.lang.Class converterClass)
Register a data converter class to be used to convert a given source class to a given target class. |
static void |
setConverterSearchPath(java.lang.String[] path)
Change the list of package names that will be used for finding data converters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataConverterManager()
| Method Detail |
public static final void registerConverter(java.lang.Class converterClass)
First, if there is a security manager, its
checkPropertiesAccess method is called.
This could result in a SecurityException.
converterClass - the Class object of the data converter class. If
this is null, then any existing definition will be removed.
java.lang.SecurityException - if a security manager exists and its
checkPropertiesAccess method doesn't allow
setting of system properties.SecurityManager.checkPropertiesAccess()
public static final boolean isThereConverFor(java.lang.Class sourceType,
java.lang.Class targetType)
public static final DataConverter findConverter(java.lang.Class sourceType,
java.lang.Class targetType)
sourceType - The Class object for the type to be converted.targetType - The Class object for the type to be converted into.
public static final java.lang.String[] getConverterSearchPath()
This is initially set to {"net.jbeans.data.converter"}.
public static final void setConverterSearchPath(java.lang.String[] path)
First, if there is a security manager,
its checkPropertiesAccess method is called.
This could result in a SecurityException.
path - Array of package names.
java.lang.SecurityException - if a security manager exists and its
checkPropertiesAccess method doesn't allow
setting of system properties.SecurityManager.checkPropertiesAccess()
public static java.lang.Object convert(java.lang.Object source,
java.lang.Class targetType)
public static final void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||