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.
Version:
$Revision$
Author:
Joachim Grueneis

Method Summary

void
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.
XMLClassDescriptor
getDescriptor(String className)
Gets the descriptor that is mapped to the given class name.

Method Details

addAllDescriptors

public void addAllDescriptors(Map descriptors)
To add not only a single descriptor but a map of descriptors at once.
Parameters:
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.
Parameters:
className - The class name to be used for mapping the given descriptor.
descriptor - The descriptor to be mapped.
See Also:
ResolverStrategy.ResolverResults

getDescriptor

public XMLClassDescriptor getDescriptor(String className)
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.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com