|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.castor.mapping.loader.CollectionHandlers
Utility class for obtaining collection handlers. Based on the configuration and supported classes it will return collections suitable for Java 1.1 and Java 1.2 run times.
CollectionHandler| Nested Class Summary | |
(package private) static class |
CollectionHandlers.EmptyEnumerator
Enumerator for a null collection. |
(package private) static class |
CollectionHandlers.Info
|
| Constructor Summary | |
CollectionHandlers()
|
|
| Method Summary | |
static java.lang.String |
getCollectionName(java.lang.Class javaClass)
Returns the associated string name for a given collection. |
static java.lang.Class |
getCollectionType(java.lang.String name)
Returns the collection's Java class from the collection name. |
static CollectionHandler |
getHandler(java.lang.Class javaClass)
Returns the collection's handler based on the Java class. |
static boolean |
hasHandler(java.lang.Class javaClass)
Returns true if the given class has an associated CollectionHandler. |
static boolean |
isGetSetCollection(java.lang.Class javaClass)
Returns true if the collection requires get/set methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CollectionHandlers()
| Method Detail |
public static java.lang.Class getCollectionType(java.lang.String name)
throws MappingException
name - The collection name
MappingException - The named collection is not supportedpublic static boolean hasHandler(java.lang.Class javaClass)
javaClass - the class to search collection handlers for
public static java.lang.String getCollectionName(java.lang.Class javaClass)
javaClass - the class to search collection handlers for
public static CollectionHandler getHandler(java.lang.Class javaClass)
throws MappingException
javaClass - The collection's Java class
MappingException - The collection class is not supported
public static boolean isGetSetCollection(java.lang.Class javaClass)
throws MappingException
javaClass - The collection's java class
MappingException - The collection class is not supported
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||