Modified: websites/production/turbine/content/fulcrum/fulcrum-localization/apidocs/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-localization/apidocs/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-localization/apidocs/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html Tue May 21 03:35:35 2019 @@ -1,785 +1,829 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.5.0_19) on Fri Jul 10 17:12:15 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -<TITLE> -SimpleLocalizationServiceImpl (Fulcrum Localization 1.0.7-SNAPSHOT API) -</TITLE> - -<META NAME="keywords" CONTENT="org.apache.fulcrum.localization.SimpleLocalizationServiceImpl class"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - parent.document.title="SimpleLocalizationServiceImpl (Fulcrum Localization 1.0.7-SNAPSHOT API)"; -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> - - +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>SimpleLocalizationServiceImpl (Fulcrum Localization 1.0.7 API)</title> +<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="SimpleLocalizationServiceImpl (Fulcrum Localization 1.0.7 API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> <!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/apache/fulcrum/localization/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SimpleLocalizationServiceImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization"><B>PREV CLASS</B></A> - NEXT CLASS</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html" target="_top"><B>FRAMES</B></A> - <A HREF="SimpleLocalizationServiceImpl.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../org/apache/fulcrum/localization/package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/SimpleLocalizationServiceImpl.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../index-all.html">Index</a></li> +<li><a href="../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization"><span class="typeNameLink">Prev Class</span></a></li> +<li>Next Class</li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html" target="_top">Frames</a></li> +<li><a href="SimpleLocalizationServiceImpl.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; } //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> <!-- ========= END OF TOP NAVBAR ========= --> - -<HR> <!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.fulcrum.localization</FONT> -<BR> -Class SimpleLocalizationServiceImpl</H2> -<PRE> -<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> - <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.avalon.framework.logger.AbstractLogEnabled - <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.fulcrum.localization.SimpleLocalizationServiceImpl</B> -</PRE> -<DL> -<DT><B>All Implemented Interfaces:</B> <DD>org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, <A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></DD> -</DL> -<DL> -<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/fulcrum/localization/DefaultLocalizationService.html" title="class in org.apache.fulcrum.localization">DefaultLocalizationService</A></DD> -</DL> -<HR> -<DL> -<DT><PRE>public class <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.68"><B>SimpleLocalizationServiceImpl</B></A><DT>extends org.apache.avalon.framework.logger.AbstractLogEnabled<DT>implements <A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A>, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable</DL> -</PRE> - -<P> -<p>This class is the single point of access to all localization +<div class="header"> +<div class="subTitle">org.apache.fulcrum.localization</div> +<h2 title="Class SimpleLocalizationServiceImpl" class="title">Class SimpleLocalizationServiceImpl</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.avalon.framework.logger.AbstractLogEnabled</li> +<li> +<ul class="inheritance"> +<li>org.apache.fulcrum.localization.SimpleLocalizationServiceImpl</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd>org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, <a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></dd> +</dl> +<dl> +<dt>Direct Known Subclasses:</dt> +<dd><a href="../../../../org/apache/fulcrum/localization/DefaultLocalizationService.html" title="class in org.apache.fulcrum.localization">DefaultLocalizationService</a></dd> +</dl> +<hr> +<br> +<pre>public class <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.75">SimpleLocalizationServiceImpl</a> +extends org.apache.avalon.framework.logger.AbstractLogEnabled +implements <a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a>, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable</pre> +<div class="block"><p> + This class is the single point of access to all localization resources. It caches different ResourceBundles for different - Locales.</p> + Locales. + </p> <p>Usage example:</p> - <blockquote><code><pre> + <pre> + <code> SimpleLocalizationService ls = (SimpleLocalizationService) TurbineServices .getInstance().getService(SimpleLocalizationService.SERVICE_NAME); - </pre></code></blockquote> + </code> + </pre> - <p>Then call <A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getString(java.lang.String, java.util.Locale, java.lang.String)"><CODE>getString(String, Locale, String)</CODE></A>, or one of + <p> + Then call <a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getString-java.lang.String-java.util.Locale-java.lang.String-"><code>getString(String, Locale, String)</code></a>, or one of two methods to retrieve a ResourceBundle: + </p> <ul> <li>getBundle("MyBundleName")</li> <li>getBundle("MyBundleName", Locale)</li> <li>etc.</li> - </ul></p> -<P> - -<P> -<DL> -<DT><B>Version:</B></DT> - <DD>$Id: DefaultLocalizationService.java 535465 2007-05-05 06:58:06Z tv $</DD> -<DT><B>Author:</B></DT> - <DD><a href="mailto:[email protected]">Jonas Maurus</a>, <a href="mailto:[email protected]">Jon S. Stevens</a>, <a href="mailto:[email protected]">Frank Y. Kim</a>, <a href="mailto:[email protected]">Daniel Rall</a>, <a href="mailto:[email protected]">Leonard Richardson</a>, <a href="mailto:[email protected]">Stephen McConnell</a>, <a href="mailto:[email protected]">Thomas Vandahl</a></DD> -</DL> -<HR> - -<P> + </ul></div> +<dl> +<dt><span class="simpleTagLabel">Version:</span></dt> +<dd>$Id: DefaultLocalizationService.java 535465 2007-05-05 06:58:06Z tv $ + + avalon.component name="localization" lifestyle="singleton" + avalon.service type="org.apache.fulcrum.localization.SimpleLocalizationService"</dd> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd><a href="mailto:[email protected]">Jonas Maurus</a>, <a href="mailto:[email protected]">Jon S. Stevens</a>, <a href="mailto:[email protected]">Frank Y. Kim</a>, <a href="mailto:[email protected]">Daniel Rall</a>, <a href="mailto:[email protected]">Leonard Richardson</a>, <a href="mailto:[email protected]">Stephen McConnell</a>, <a href="mailto:[email protected]">Thomas Vandahl</a></dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> - -<A NAME="field_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Field Summary</B></FONT></TH> -</TR> -</TABLE> - <A NAME="fields_inherited_from_class_org.apache.fulcrum.localization.SimpleLocalizationService"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Fields inherited from interface org.apache.fulcrum.localization.<A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#ROLE">ROLE</A>, <A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#SERVICE_NAME">SERVICE_NAME</A></CODE></TD> -</TR> -</TABLE> - +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<ul class="blockList"> +<li class="blockList"><a name="fields.inherited.from.class.org.apache.fulcrum.localization.SimpleLocalizationService"> +<!-- --> +</a> +<h3>Fields inherited from interface org.apache.fulcrum.localization.<a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></h3> +<code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#ROLE">ROLE</a>, <a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#SERVICE_NAME">SERVICE_NAME</a></code></li> +</ul> +</li> +</ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> - -<A NAME="constructor_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Constructor Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#SimpleLocalizationServiceImpl()">SimpleLocalizationServiceImpl</A></B>()</CODE> - -<BR> - Creates a new instance.</TD> -</TR> -</TABLE> - +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#SimpleLocalizationServiceImpl--">SimpleLocalizationServiceImpl</a></span>()</code> +<div class="block">Creates a new instance.</div> +</td> +</tr> +</table> +</li> +</ul> <!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#configure(org.apache.avalon.framework.configuration.Configuration)">configure</A></B>(org.apache.avalon.framework.configuration.Configuration conf)</CODE> - -<BR> - Avalon lifecycle method</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#format(java.lang.String, java.util.Locale, java.lang.String, java.lang.Object)">format</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> arg1)</CODE> - -<BR> - Formats a localized value using the provided object.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#format(java.lang.String, java.util.Locale, java.lang.String, java.lang.Object[])">format</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] args)</CODE> - -<BR> - Looks up the value for <code>key</code> in the +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#configure-org.apache.avalon.framework.configuration.Configuration-">configure</a></span>(org.apache.avalon.framework.configuration.Configuration conf)</code> +<div class="block">Avalon lifecycle method + + <code>Configurable</code></div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#format-java.lang.String-java.util.Locale-java.lang.String-java.lang.Object-">format</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> arg1)</code> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#format-java.lang.String-java.util.Locale-java.lang.String-java.lang.Object-"><code>SimpleLocalizationService.format(String, Locale, String, Object)</code></a></div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#format-java.lang.String-java.util.Locale-java.lang.String-java.lang.Object:A-">format</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] args)</code> +<div class="block">Looks up the value for <code>key</code> in the <code>ResourceBundle</code> referenced by <code>bundleName</code>, then formats that value for the - specified <code>Locale</code> using <code>args</code>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#format(java.lang.String, java.util.Locale, java.lang.String, java.lang.Object, java.lang.Object)">format</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> arg1, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> arg2)</CODE> - -<BR> - Formats a localized value using the provided objects.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundle()">getBundle</A></B>()</CODE> - -<BR> - Convenience method to get the default <code>ResourceBundle</code>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundle(java.lang.String)">getBundle</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName)</CODE> - -<BR> - Returns a ResourceBundle given the bundle name and the default - locale information supplied by the configuration.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundle(java.lang.String, java.util.Locale)">getBundle</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</CODE> - -<BR> - This method returns a ResourceBundle for the given bundle name - and the given Locale.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundleNames()">getBundleNames</A></B>()</CODE> - -<BR> - Retrieves the list of names of bundles to search by default for - <code>ResourceBundle</code> keys (as specified in the config - file).</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultBundleName()">getDefaultBundleName</A></B>()</CODE> - -<BR> - Retrieves the name of the default bundle (as specified in the - config file), or the first in the list if there are more than - one.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultCountry()">getDefaultCountry</A></B>()</CODE> - -<BR> - Retrieves the default country (specified in the config file).</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultLanguage()">getDefaultLanguage</A></B>()</CODE> - -<BR> - Retrieves the default language (specified in the config file).</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultLocale()">getDefaultLocale</A></B>()</CODE> - -<BR> - Retrieves the default Locale (as created from default - language and default country).</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getString(java.lang.String, java.util.Locale, java.lang.String)">getString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key)</CODE> - -<BR> - Tries very hard to return a value, looking first in the - specified bundle, then searching list of default bundles - (giving precedence to earlier bundles over later bundles).</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getStringOrNull(java.util.ResourceBundle, java.lang.String)">getStringOrNull</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> rb, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key)</CODE> - -<BR> - Gets localized text from a bundle if it's there.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE>protected void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#initBundleNames(java.lang.String[])">initBundleNames</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] intBundleNames)</CODE> - -<BR> - Initialize list of default bundle names.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#initialize()">initialize</A></B>()</CODE> - -<BR> - Called the first time the Service is used.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#setBundle(java.lang.String)">setBundle</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultBundle)</CODE> - -<BR> - This method sets the name of the first bundle in the search - list (the "default" bundle).</TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_org.apache.avalon.framework.logger.AbstractLogEnabled"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>enableLogging, getLogger, setupLogger, setupLogger, setupLogger</CODE></TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/ docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> -</TR> -</TABLE> - -<P> - + specified <code>Locale</code> using <code>args</code>.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#format-java.lang.String-java.util.Locale-java.lang.String-java.lang.Object-java.lang.Object-">format</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> arg1, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> arg2)</code> +<div class="block">Formats a localized value using the provided objects.</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundle--">getBundle</a></span>()</code> +<div class="block">Convenience method to get the default <code>ResourceBundle</code>.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundle-java.lang.String-">getBundle</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName)</code> +<div class="block">Returns a ResourceBundle given the bundle name and the default + locale information supplied by the configuration.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundle-java.lang.String-java.util.Locale-">getBundle</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale)</code> +<div class="block">Convenience method to get a ResourceBundle based on name and + Locale.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getBundleNames--">getBundleNames</a></span>()</code> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundleNames--"><code>SimpleLocalizationService.getBundleNames()</code></a></div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultBundleName--">getDefaultBundleName</a></span>()</code> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultBundleName--"><code>SimpleLocalizationService.getDefaultBundleName()</code></a></div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultCountry--">getDefaultCountry</a></span>()</code> +<div class="block">Retrieves the default country (specified in the config file).</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultLanguage--">getDefaultLanguage</a></span>()</code> +<div class="block">Retrieves the default language (specified in the config file).</div> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getDefaultLocale--">getDefaultLocale</a></span>()</code> +<div class="block">Retrieves the default Locale (as created from default + language and default country).</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getString-java.lang.String-">getString</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> +<div class="block">Returns the value for the key in the default bundle and the default locale.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getString-java.lang.String-java.util.Locale-java.lang.String-">getString</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString-java.lang.String-java.util.Locale-java.lang.String-"><code>SimpleLocalizationService.getString(String, Locale, String)</code></a></div> +</td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#getStringOrNull-java.util.ResourceBundle-java.lang.String-">getStringOrNull</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a> rb, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> +<div class="block">Gets localized text from a bundle if it's there.</div> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#initBundleNames-java.lang.String:A-">initBundleNames</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] intBundleNames)</code> +<div class="block">Initialize list of default bundle names.</div> +</td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#initialize--">initialize</a></span>()</code> +<div class="block">Called the first time the Service is used.</div> +</td> +</tr> +<tr id="i17" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#setBundle-java.lang.String-">setBundle</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultBundle)</code> +<div class="block">This method sets the name of the first bundle in the search + list (the "default" bundle).</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.avalon.framework.logger.AbstractLogEnabled"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled</h3> +<code>enableLogging, getLogger, setupLogger, setupLogger, setupLogger</code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/7/docs/api/ja va/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> - -<A NAME="constructor_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Constructor Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="SimpleLocalizationServiceImpl()"><!-- --></A><H3> -SimpleLocalizationServiceImpl</H3> -<PRE> -public <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.105"><B>SimpleLocalizationServiceImpl</B></A>()</PRE> -<DL> -<DD>Creates a new instance. -<P> -</DL> - +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="SimpleLocalizationServiceImpl--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>SimpleLocalizationServiceImpl</h4> +<pre>public <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.114">SimpleLocalizationServiceImpl</a>()</pre> +<div class="block">Creates a new instance.</div> +</li> +</ul> +</li> +</ul> <!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="configure(org.apache.avalon.framework.configuration.Configuration)"><!-- --></A><H3> -configure</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.115"><B>configure</B></A>(org.apache.avalon.framework.configuration.Configuration conf) - throws org.apache.avalon.framework.configuration.ConfigurationException</PRE> -<DL> -<DD>Avalon lifecycle method -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>configure</CODE> in interface <CODE>org.apache.avalon.framework.configuration.Configurable</CODE></DL> -</DD> -<DD><DL> - -<DT><B>Throws:</B> -<DD><CODE>org.apache.avalon.framework.configuration.ConfigurationException</CODE><DT><B>See Also:</B><DD><CODE>Configurable}</CODE></DL> -</DD> -</DL> -<HR> - -<A NAME="initialize()"><!-- --></A><H3> -initialize</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.152"><B>initialize</B></A>() - throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE> -<DL> -<DD>Called the first time the Service is used. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>initialize</CODE> in interface <CODE>org.apache.avalon.framework.activity.Initializable</CODE></DL> -</DD> -<DD><DL> - -<DT><B>Throws:</B> -<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL> -</DD> -</DL> -<HR> - -<A NAME="initBundleNames(java.lang.String[])"><!-- --></A><H3> -initBundleNames</H3> -<PRE> -protected void <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.167"><B>initBundleNames</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] intBundleNames)</PRE> -<DL> -<DD>Initialize list of default bundle names. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>ignored</CODE> - names Ignored.</DL> -</DD> -</DL> -<HR> - -<A NAME="getDefaultLanguage()"><!-- --></A><H3> -getDefaultLanguage</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.201"><B>getDefaultLanguage</B></A>()</PRE> -<DL> -<DD>Retrieves the default language (specified in the config file). -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultLanguage()">getDefaultLanguage</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getDefaultCountry()"><!-- --></A><H3> -getDefaultCountry</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.209"><B>getDefaultCountry</B></A>()</PRE> -<DL> -<DD>Retrieves the default country (specified in the config file). -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultCountry()">getDefaultCountry</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getDefaultLocale()"><!-- --></A><H3> -getDefaultLocale</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.218"><B>getDefaultLocale</B></A>()</PRE> -<DL> -<DD>Retrieves the default Locale (as created from default - language and default country). -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultLocale()">getDefaultLocale</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getDefaultBundleName()"><!-- --></A><H3> -getDefaultBundleName</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.226"><B>getDefaultBundleName</B></A>()</PRE> -<DL> -<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultBundleName()">SimpleLocalizationService</A></CODE></B></DD> -<DD>Retrieves the name of the default bundle (as specified in the - config file), or the first in the list if there are more than - one. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultBundleName()">getDefaultBundleName</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultBundleName()"><CODE>SimpleLocalizationService.getDefaultBundleName()</CODE></A></DL> -</DD> -</DL> -<HR> - -<A NAME="getBundleNames()"><!-- --></A><H3> -getBundleNames</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.234"><B>getBundleNames</B></A>()</PRE> -<DL> -<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundleNames()">SimpleLocalizationService</A></CODE></B></DD> -<DD>Retrieves the list of names of bundles to search by default for - <code>ResourceBundle</code> keys (as specified in the config - file). -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundleNames()">getBundleNames</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> - -<DT><B>Returns:</B><DD>The list of configured bundle names.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundleNames()"><CODE>SimpleLocalizationService.getBundleNames()</CODE></A></DL> -</DD> -</DL> -<HR> - -<A NAME="getBundle()"><!-- --></A><H3> -getBundle</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.242"><B>getBundle</B></A>()</PRE> -<DL> -<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle()">SimpleLocalizationService</A></CODE></B></DD> -<DD>Convenience method to get the default <code>ResourceBundle</code>. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle()">getBundle</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> - -<DT><B>Returns:</B><DD>A localized <code>ResourceBundle</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle()"><CODE>SimpleLocalizationService.getBundle()</CODE></A></DL> -</DD> -</DL> -<HR> - -<A NAME="getBundle(java.lang.String)"><!-- --></A><H3> -getBundle</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.250"><B>getBundle</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName)</PRE> -<DL> -<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle(java.lang.String)">SimpleLocalizationService</A></CODE></B></DD> -<DD>Returns a ResourceBundle given the bundle name and the default - locale information supplied by the configuration. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle(java.lang.String)">getBundle</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>bundleName</CODE> - Name of bundle. -<DT><B>Returns:</B><DD>A localized ResourceBundle.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle(java.lang.String)"><CODE>SimpleLocalizationService.getBundle(String)</CODE></A></DL> -</DD> -</DL> -<HR> - -<A NAME="getBundle(java.lang.String, java.util.Locale)"><!-- --></A><H3> -getBundle</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.265"><B>getBundle</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</PRE> -<DL> -<DD>This method returns a ResourceBundle for the given bundle name - and the given Locale. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle(java.lang.String, java.util.Locale)">getBundle</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>bundleName</CODE> - Name of bundle (or <code>null</code> for the - default bundle).<DD><CODE>locale</CODE> - The locale (or <code>null</code> for the locale - indicated by the default language and country). -<DT><B>Returns:</B><DD>A localized ResourceBundle.</DL> -</DD> -</DL> -<HR> - -<A NAME="setBundle(java.lang.String)"><!-- --></A><H3> -setBundle</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.424"><B>setBundle</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultBundle)</PRE> -<DL> -<DD>This method sets the name of the first bundle in the search - list (the "default" bundle). -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#setBundle(java.lang.String)">setBundle</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>defaultBundle</CODE> - Name of default bundle.</DL> -</DD> -</DL> -<HR> - -<A NAME="getString(java.lang.String, java.util.Locale, java.lang.String)"><!-- --></A><H3> -getString</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.446"><B>getString</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key) - throws <A HREF="http://java.sun.com/javase/6/docs/api/java/util/MissingResourceException.html" title="class or interface in java.util">MissingResourceException</A></PRE> -<DL> -<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString(java.lang.String, java.util.Locale, java.lang.String)">SimpleLocalizationService</A></CODE></B></DD> -<DD>Tries very hard to return a value, looking first in the - specified bundle, then searching list of default bundles - (giving precedence to earlier bundles over later bundles). -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString(java.lang.String, java.util.Locale, java.lang.String)">getString</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>bundleName</CODE> - Name of the bundle to look in first.<DD><CODE>locale</CODE> - Locale to get text for.<DD><CODE>key</CODE> - Name of the text to retrieve. -<DT><B>Returns:</B><DD>Localized text. -<DT><B>Throws:</B> -<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/MissingResourceException.html" title="class or interface in java.util">MissingResourceException</A></CODE> - Specified key cannot be matched.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString(java.lang.String, java.util.Locale, java.lang.String)"><CODE>SimpleLocalizationService.getString(String, Locale, String)</CODE></A></DL> -</DD> -</DL> -<HR> - -<A NAME="getStringOrNull(java.util.ResourceBundle, java.lang.String)"><!-- --></A><H3> -getStringOrNull</H3> -<PRE> -protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.502"><B>getStringOrNull</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html" title="class or interface in java.util">ResourceBundle</A> rb, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key)</PRE> -<DL> -<DD>Gets localized text from a bundle if it's there. Otherwise, +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="configure-org.apache.avalon.framework.configuration.Configuration-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>configure</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.128">configure</a>(org.apache.avalon.framework.configuration.Configuration conf) + throws org.apache.avalon.framework.configuration.ConfigurationException</pre> +<div class="block">Avalon lifecycle method + + <code>Configurable</code></div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code>configure</code> in interface <code>org.apache.avalon.framework.configuration.Configurable</code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>conf</code> - the configuration</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code>org.apache.avalon.framework.configuration.ConfigurationException</code> - if failed to configure</dd> +</dl> +</li> +</ul> +<a name="initialize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>initialize</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.168">initialize</a>() + throws <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> +<div class="block">Called the first time the Service is used.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code>initialize</code> in interface <code>org.apache.avalon.framework.activity.Initializable</code></dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - generic exception</dd> +</dl> +</li> +</ul> +<a name="initBundleNames-java.lang.String:A-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>initBundleNames</h4> +<pre>protected void <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.182">initBundleNames</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] intBundleNames)</pre> +<div class="block">Initialize list of default bundle names.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>intBundleNames</code> - set bundle names</dd> +</dl> +</li> +</ul> +<a name="getDefaultLanguage--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDefaultLanguage</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.196">getDefaultLanguage</a>()</pre> +<div class="block">Retrieves the default language (specified in the config file).</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultLanguage--">getDefaultLanguage</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the default language</dd> +</dl> +</li> +</ul> +<a name="getDefaultCountry--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDefaultCountry</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.207">getDefaultCountry</a>()</pre> +<div class="block">Retrieves the default country (specified in the config file).</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultCountry--">getDefaultCountry</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the default country</dd> +</dl> +</li> +</ul> +<a name="getDefaultLocale--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDefaultLocale</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.219">getDefaultLocale</a>()</pre> +<div class="block">Retrieves the default Locale (as created from default + language and default country).</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultLocale--">getDefaultLocale</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the default locale</dd> +</dl> +</li> +</ul> +<a name="getDefaultBundleName--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDefaultBundleName</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.230">getDefaultBundleName</a>()</pre> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultBundleName--"><code>SimpleLocalizationService.getDefaultBundleName()</code></a></div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getDefaultBundleName--">getDefaultBundleName</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the default bundle name</dd> +</dl> +</li> +</ul> +<a name="getBundleNames--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getBundleNames</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.241">getBundleNames</a>()</pre> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundleNames--"><code>SimpleLocalizationService.getBundleNames()</code></a></div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundleNames--">getBundleNames</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>list of bundle names available</dd> +</dl> +</li> +</ul> +<a name="getBundle--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getBundle</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.252">getBundle</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle--">SimpleLocalizationService</a></code></span></div> +<div class="block">Convenience method to get the default <code>ResourceBundle</code>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle--">getBundle</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the default resource bundle</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle--"><code>SimpleLocalizationService.getBundle()</code></a></dd> +</dl> +</li> +</ul> +<a name="getBundle-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getBundle</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.264">getBundle</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle-java.lang.String-">SimpleLocalizationService</a></code></span></div> +<div class="block">Returns a ResourceBundle given the bundle name and the default + locale information supplied by the configuration.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle-java.lang.String-">getBundle</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>bundleName</code> - the name of a bundle</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the resource bundle</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle-java.lang.String-"><code>SimpleLocalizationService.getBundle(java.lang.String)</code></a></dd> +</dl> +</li> +</ul> +<a name="getBundle-java.lang.String-java.util.Locale-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getBundle</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.282">getBundle</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle-java.lang.String-java.util.Locale-">SimpleLocalizationService</a></code></span></div> +<div class="block">Convenience method to get a ResourceBundle based on name and + Locale.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle-java.lang.String-java.util.Locale-">getBundle</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>bundleName</code> - Name of bundle (or <code>null</code> for the + default bundle).</dd> +<dd><code>locale</code> - The locale (or <code>null</code> for the locale + indicated by the default language and country).</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A localized ResourceBundle.</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getBundle-java.lang.String-java.util.Locale-"><code>This method returns a ResourceBundle for the given bundle name + and the given Locale.</code></a></dd> +</dl> +</li> +</ul> +<a name="setBundle-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setBundle</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.462">setBundle</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultBundle)</pre> +<div class="block">This method sets the name of the first bundle in the search + list (the "default" bundle).</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#setBundle-java.lang.String-">setBundle</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>defaultBundle</code> - Name of default bundle.</dd> +</dl> +</li> +</ul> +<a name="getString-java.lang.String-java.util.Locale-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getString</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.486">getString</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bundleName, + <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key) + throws <a href="https://docs.oracle.com/javase/7/docs/api/java/util/MissingResourceException.html?is-external=true" title="class or interface in java.util">MissingResourceException</a></pre> +<div class="block"><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString-java.lang.String-java.util.Locale-java.lang.String-"><code>SimpleLocalizationService.getString(String, Locale, String)</code></a></div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString-java.lang.String-java.util.Locale-java.lang.String-">getString</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>bundleName</code> - Name of the bundle to look in first.</dd> +<dd><code>locale</code> - Locale to get text for.</dd> +<dd><code>key</code> - Name of the text to retrieve.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Localized text.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/MissingResourceException.html?is-external=true" title="class or interface in java.util">MissingResourceException</a></code> - Specified key cannot be matched.</dd> +</dl> +</li> +</ul> +<a name="getString-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getString</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.544">getString</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> +<div class="block">Returns the value for the key in the default bundle and the default locale.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#getString-java.lang.String-">getString</a></code> in interface <code><a href="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>key</code> - The key to retrieve the value for.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The value mapped to the key.</dd> +</dl> +</li> +</ul> +<a name="getStringOrNull-java.util.ResourceBundle-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getStringOrNull</h4> +<pre>protected final <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.559">getStringOrNull</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a> rb, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> +<div class="block">Gets localized text from a bundle if it's there. Otherwise, returns <code>null</code> (ignoring a possible - <code>MissingResourceException</code>). -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="format(java.lang.String, java.util.Locale, java.lang.String, java.lang.Object)"><!-- --></A><H3> -format</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/localization/SimpleLocalizationServiceImpl.html#line.521"><B>format</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> bundleName, - <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> arg1)</PRE> -<DL> -<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#format(java.lang.String, java.util.Locale, java.lang.String, java.lang.Object)">SimpleLocalizationService</A></CODE></B></DD> -<DD>Formats a localized value using the provided object. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html#format(java.lang.String, java.util.Locale, java.lang.String, java.lang.Object)">format</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/localization/SimpleLocalizationService.html" title="interface in org.apache.fulcrum.localization">SimpleLocalizationService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>bundleName</CODE> - The bundle in which to look for the localizable text.<DD><CODE>locale</CODE> - The locale for which to format the text.<DD><CODE>key</CODE> - The identifier for the localized text to retrieve,<DD><CODE>arg1</CODE> - The object to use as {0} when formatting the localized text.
[... 274 lines stripped ...]
