|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.mapping.loader.CollectionHandlers
public final class 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 | |
|---|---|
static class |
CollectionHandlers.EmptyEnumerator<T>
Enumerator for a null collection. |
| Constructor Summary | |
|---|---|
CollectionHandlers()
|
|
| 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. |
| 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 Class<?> getCollectionType(String name)
throws MappingException
name - The collection name
MappingException - The named collection is not supportedpublic static boolean hasHandler(Class<?> javaClass)
javaClass - the class to search collection handlers for
public static String getCollectionName(Class<?> javaClass)
javaClass - the class to search collection handlers for
public static CollectionHandler getHandler(Class<?> javaClass)
throws MappingException
javaClass - The collection's Java class
MappingException - The collection class is not supported
public static boolean isGetSetCollection(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 | |||||||||