FileDocCategorySizeDatePackage
MapStringSource.javaAPI DocGlassfish v2 API2748Fri May 04 22:31:06 BST 2007com.sun.appserv.management.util.misc

MapStringSource

public class MapStringSource extends StringSourceBase implements StringSource
An abstraction for getting a String, given an id string.

Fields Summary
final Map
mMapping
Constructors Summary
public MapStringSource(Map mapping)

		assert( mapping != null );
		mMapping	= mapping;
	
Methods Summary
public java.lang.StringgetString(java.lang.String id, java.lang.String defaultValue)

		String	result	= mMapping.get( id ).toString();
		if ( result == null )
		{
			result	= super.getString( id, defaultValue );
		}
		return( result );