org.exolab.castor.mapping.loader
public final class CollectionHandlers extends Object
Version: $Revision: 1.2 $ $Date: 2003/03/03 09:57:16 $
See Also: CollectionHandler
Nested Class Summary | |
---|---|
static class | CollectionHandlers.EmptyEnumerator
Enumerator for a null collection. |
static class | CollectionHandlers.Info |
Method Summary | |
---|---|
static String | getCollectionName(Class javaClass)
Returns the associated string name for a given collection.
|
static Class | getCollectionType(String name)
Returns the collection's Java class from the collection name.
|
static CollectionHandler | getHandler(Class javaClass)
Returns the collection's handler based on the Java class.
|
static boolean | hasHandler(Class javaClass)
Returns true if the given class has an associated CollectionHandler.
|
static boolean | isGetSetCollection(Class javaClass)
Returns true if the collection requires get/set methods.
|
Parameters: javaClass the class to search collection handlers for
Returns: the string name for the given collection type or null if no association has been defined.
Parameters: name The collection name
Returns: The collection Java class
Throws: MappingException The named collection is not supported
Parameters: javaClass The collection's Java class
Returns: The collection handler
Throws: MappingException The collection class is not supported
Parameters: javaClass the class to search collection handlers for
Returns: true if the given class has an associated CollectionHandler, otherwise false.
Returns: True if collection requires get/set methods, false if collection requires only get method
Throws: MappingException The collection class is not supported
UNKNOWN: javaClass The collection's java class