org.geotools.text
Class Text

Object
  extended by Text

public class Text
extends Object

Helper class for working with InternaionalString and other forms of Text.

Author:
Jody Garnett

Constructor Summary
Text()
           
 
Method Summary
static InternationalString text(String english)
          Create a international string based on the provided English text.
static InternationalString text(String key, Map<String,String> translations)
           
static InternationalString text(String key, Properties properties)
           
static InternationalString text(String key, String resourceBundle)
          Create an international string based on provided key, and resource bundle.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()
Method Detail

text

public static InternationalString text(String english)
Create a international string based on the provided English text.

We will hook up this method to a properties file at a later time, making other translations available via the Factory SPI mechanism.

Parameters:
english -
Returns:
SimpleInternationalString

text

public static InternationalString text(String key,
                                       String resourceBundle)
Create an international string based on provided key, and resource bundle.

Parameters:
key - The key for the resource to fetch
resources - The name of the resource bundle, as a fully qualified class name.
Returns:
ResourceInternationalString

text

public static InternationalString text(String key,
                                       Map<String,String> translations)

text

public static InternationalString text(String key,
                                       Properties properties)


Copyright © 1996-2014 Geotools. All Rights Reserved.