Package org.exolab.castor.xml.util
Interface ResolverStrategy.ResolverResults
- Enclosing interface:
- ResolverStrategy
public static interface ResolverStrategy.ResolverResults
As a strategy generate one or more class descriptors it needs a place
to put the results to. This is a minimal interface to give the strategy a
place where to put generated class descriptors to.
- Version:
- $Revision$
- Author:
- Joachim Grueneis
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllDescriptors
(Map descriptors) To add not only a single descriptor but a map of descriptors at once.void
addDescriptor
(String className, XMLClassDescriptor descriptor) Adds a descriptor to this caches maps.
The descriptor is mapped both with the class name and its XML name.getDescriptor
(String className) Gets the descriptor that is mapped to the given class name.
-
Method Details
-
addDescriptor
Adds a descriptor to this caches maps.
The descriptor is mapped both with the class name and its XML name. The descriptor will not be mapped with its XML name isnull
, the empty string (""), or has the value of the constant INTERNAL_CONTAINER_NAME. If there already is a descriptor for the givenclassName
and/or the descriptor's XML name the previously cached descriptor is replaced.- Parameters:
className
- The class name to be used for mapping the given descriptor.descriptor
- The descriptor to be mapped.- See Also:
-
#INTERNAL_CONTAINER_NAME
-
addAllDescriptors
To add not only a single descriptor but a map of descriptors at once.- Parameters:
descriptors
- a Map of className (String) and XMLClassDescriptor pairs
-
getDescriptor
Gets the descriptor that is mapped to the given class name.- Parameters:
className
- The class name to get a descriptor for.- Returns:
- The descriptor mapped to the given name or
null
if no descriptor is stored in this cache.
-