org.exolab.castor.xml.util
Interface ResolverStrategy.ResolverResults
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.
addAllDescriptors
public void addAllDescriptors(Map descriptors)
To add not only a single descriptor but a map of descriptors at once.
descriptors
- a Map of className (String) and XMLClassDescriptor pairs
addDescriptor
public 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.
The descriptor will not be mapped with its XML name is
null
, the empty string (""), or has the value of the
constant INTERNAL_CONTAINER_NAME.
If there already is a descriptor for the given className
and/or the descriptor's XML name the previously cached descriptor is
replaced.
className
- The class name to be used for mapping the given descriptor.descriptor
- The descriptor to be mapped.
ResolverStrategy.ResolverResults
getDescriptor
public XMLClassDescriptor getDescriptor(String className)
Gets the descriptor that is mapped to the given class name.
className
- The class name to get a descriptor for.
- The descriptor mapped to the given name or
null
if no descriptor is stored in this cache.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com