Java EE 5 SDK

com.sun.appserv.management.util.misc
Class StringStringSource

java.lang.Object
  extended by com.sun.appserv.management.util.misc.StringSourceBase
      extended by com.sun.appserv.management.util.misc.StringStringSource
All Implemented Interfaces:
StringSource

public class StringStringSource
extends StringSourceBase

A StringSource which obtains its strings from a String mimicking a Properties file key1=value1 key2=value2 .... keyN=valueN etc


Constructor Summary
StringStringSource(String strings, StringSource delegate)
           
 
Method Summary
 String getString(String id)
          Get the String referred to by 'id'
 
Methods inherited from class com.sun.appserv.management.util.misc.StringSourceBase
getString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringStringSource

public StringStringSource(String strings,
                          StringSource delegate)
Method Detail

getString

public String getString(String id)
Description copied from interface: StringSource
Get the String referred to by 'id'

Specified by:
getString in interface StringSource
Overrides:
getString in class StringSourceBase
Parameters:
id - the id (key) for the String
Returns:
the String, or null if not found

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.