org.exolab.castor.mapping.loader
public final class CollectionHandlers extends java.lang.Object
CollectionHandler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CollectionHandlers.EmptyEnumerator
Enumerator for a null collection.
|
(package private) static class |
CollectionHandlers.Info |
Constructor and Description |
---|
CollectionHandlers() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static java.lang.Class getCollectionType(java.lang.String name) throws MappingException
name
- The collection nameMappingException
- The named collection is not supportedpublic static boolean hasHandler(java.lang.Class javaClass)
javaClass
- the class to search collection handlers forpublic static java.lang.String getCollectionName(java.lang.Class javaClass)
javaClass
- the class to search collection handlers forpublic static CollectionHandler getHandler(java.lang.Class javaClass) throws MappingException
javaClass
- The collection's Java classMappingException
- The collection class is not supportedpublic static boolean isGetSetCollection(java.lang.Class javaClass) throws MappingException
javaClass
- The collection's java classMappingException
- The collection class is not supportedIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com