chrriis.uihierarchy.xml.resolver
Class MapComponentResolver
java.lang.Object
chrriis.uihierarchy.xml.resolver.MapComponentResolver
- All Implemented Interfaces:
- ComponentResolver
- public class MapComponentResolver
- extends Object
- implements ComponentResolver
The component resolver for maps.
- Version:
- 1.0 2003.10.06
- Author:
- Christopher Deckers (chrriis@brainlex.com)
MapComponentResolver
public MapComponentResolver(Map componentsMap)
- Construct a component resolver for a map.
- Parameters:
componentsMap
- The map where keys are the components names and the
values are the components themselves.
resolve
public Object resolve(String name)
- Resolve a component from its name.
- Specified by:
resolve
in interface ComponentResolver
- Parameters:
name
- The name of the component to resolve.
- Returns:
- The component matching the given name, or null if not found.
- See Also:
ComponentResolver.resolve(java.lang.String)