Java EE 5 SDK

com.sun.appserv.management.util.misc
Interface StringSource

All Known Implementing Classes:
Formatter, MapStringSource, PropertiesStringSource, StringSourceBase, StringStringSource

public interface StringSource

An abstraction for getting a String, given an id string.


Method Summary
 String getString(String id)
          Get the String referred to by 'id'
 String getString(String id, String defaultValue)
          Get the String referred to by 'id'.
 

Method Detail

getString

String getString(String id)
Get the String referred to by 'id'

Parameters:
id - the id (key) for the String
Returns:
the String, or null if not found

getString

String getString(String id,
                 String defaultValue)
Get the String referred to by 'id'.

Parameters:
id - the id (key) for the String
defaultValue - the default value to be returned if string was not found
Returns:
the String, or defaultValue if not found

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.