List of all members.
Detailed Description
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.
- Author:
- Assaf Arkin
- Version:
- Revision:
- 1.2
- Date:
- 2003/03/03 09:57:16
- See also:
- CollectionHandler
Member Function Documentation
static String org.exolab.castor.mapping.loader.CollectionHandlers.getCollectionName |
( |
Class |
javaClass |
) |
[static] |
Returns the associated string name for a given collection.
- 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.
static Class org.exolab.castor.mapping.loader.CollectionHandlers.getCollectionType |
( |
String |
name |
) |
throws MappingException [static] |
Returns the collection's Java class from the collection name. The collection name may be a short name (e.g. vector
) or the collection Java class name (e.g. java.util.Vector
). If the collection is not supported, an exception is thrown.
- Parameters:
-
- Returns:
- The collection Java class
- Exceptions:
-
Returns the collection's handler based on the Java class.
- Parameters:
-
| javaClass | The collection's Java class |
- Returns:
- The collection handler
- Exceptions:
-
static boolean org.exolab.castor.mapping.loader.CollectionHandlers.hasHandler |
( |
Class |
javaClass |
) |
[static] |
Returns true if the given class has an associated CollectionHandler.
- Parameters:
-
| javaClass | the class to search collection handlers for |
- Returns:
- true if the given class has an associated CollectionHandler, otherwise false.
static boolean org.exolab.castor.mapping.loader.CollectionHandlers.isGetSetCollection |
( |
Class |
javaClass |
) |
throws MappingException [static] |
Returns true if the collection requires get/set methods. java.util
collections only require a get method, but an array collection required both get and set methods.
javaClass The collection's java class
- Returns:
- True if collection requires get/set methods, false if collection requires only get method
- Exceptions:
-
The documentation for this class was generated from the following file: