blob: eb8240a9cd5604017819ddfcddd040c01e635bed [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Aug 22 03:44:00 EDT 2003 -->
<TITLE>
I18nFactorySet (Apache Struts API Documentation)
</TITLE>
<META NAME="keywords" CONTENT="org.apache.struts.tiles.xmlDefinition.I18nFactorySet,I18nFactorySet class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="I18nFactorySet (Apache Struts API Documentation)";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/I18nFactorySet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlAttribute.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="I18nFactorySet.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.struts.tiles.xmlDefinition</FONT>
<BR>
Class I18nFactorySet</H2>
<PRE>
java.lang.Object
|
+--<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">org.apache.struts.tiles.xmlDefinition.FactorySet</A>
|
+--<B>org.apache.struts.tiles.xmlDefinition.I18nFactorySet</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/struts/tiles/ComponentDefinitionsFactory.html">ComponentDefinitionsFactory</A>, java.io.Serializable</DD>
</DL>
<HR>
<DL>
<DT>public class <B>I18nFactorySet</B><DT>extends <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></DL>
<P>
Definitions factory.
This implementation allows to have a set of definition factories.
There is a main factory and one factory for each file associated to a Locale.
To retrieve a definition, we first search for the appropriate factory using
the Locale found in session context. If no factory is found, use the
default one. Then we ask the factory for the definition.
A definition factory file is loaded using main filename extended with locale code
(ex : <code>templateDefinitions_fr.xml</code>). If no file is found under this name, use default file.
<P>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html" TARGET="org.apache.struts.tiles.xmlDefinition.I18nFactorySet">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#DEFAULT_DEFINITION_FILENAMES">DEFAULT_DEFINITION_FILENAMES</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Possible definition filenames.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#defaultFactory">defaultFactory</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default factory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#DEFINITIONS_CONFIG_PARAMETER_NAME">DEFINITIONS_CONFIG_PARAMETER_NAME</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Config file parameter name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#FILENAME_EXTENSION">FILENAME_EXTENSION</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default filenames extension.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#filenames">filenames</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Names of files containing instances descriptions.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#INSTANCES_CONFIG_PARAMETER_NAME">INSTANCES_CONFIG_PARAMETER_NAME</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use DEFINITIONS_CONFIG_PARAMETER_NAME</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#isValidatingParser">isValidatingParser</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do we want validating parser.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.util.Map</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#loaded">loaded</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection of already loaded definitions set, referenced by their suffix.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;org.apache.commons.logging.Log</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#log">log</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Commons Logging instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#MAX_BUNDLES_SEARCHED">MAX_BUNDLES_SEARCHED</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maximum length of one branch of the resource search path tree.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#PARSER_DETAILS_PARAMETER_NAME">PARSER_DETAILS_PARAMETER_NAME</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Config file parameter name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#PARSER_VALIDATE_PARAMETER_NAME">PARSER_VALIDATE_PARAMETER_NAME</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Config file parameter name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#parserDetailLevel">parserDetailLevel</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parser detail level.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlParser.html">XmlParser</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#xmlParser">xmlParser</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xml parser used.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.apache.struts.tiles.xmlDefinition.FactorySet"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Fields inherited from class org.apache.struts.tiles.xmlDefinition.<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#factories">factories</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#I18nFactorySet()">I18nFactorySet</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parameterless Constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#I18nFactorySet(javax.servlet.ServletContext, java.util.Map)">I18nFactorySet</A></B>(javax.servlet.ServletContext&nbsp;servletContext,
java.util.Map&nbsp;properties)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#calculatePostixes(java.lang.String, java.util.Locale)">calculatePostixes</A></B>(java.lang.String&nbsp;baseName,
java.util.Locale&nbsp;locale)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculate the postixes along the search path from the base bundle to the
bundle specified by baseName and locale.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#concatPostfix(java.lang.String, java.lang.String)">concatPostfix</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;postfix)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Concat postfix to the name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#createDefaultFactory(javax.servlet.ServletContext)">createDefaultFactory</A></B>(javax.servlet.ServletContext&nbsp;servletContext)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create default factory .</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#createFactory(java.lang.Object, javax.servlet.ServletRequest, javax.servlet.ServletContext)">createFactory</A></B>(java.lang.Object&nbsp;key,
javax.servlet.ServletRequest&nbsp;request,
javax.servlet.ServletContext&nbsp;servletContext)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a factory for specified key.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#getDefaultFactory()">getDefaultFactory</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get default factory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#getDefinitionsFactoryKey(java.lang.String, javax.servlet.ServletRequest, javax.servlet.ServletContext)">getDefinitionsFactoryKey</A></B>(java.lang.String&nbsp;name,
javax.servlet.ServletRequest&nbsp;request,
javax.servlet.ServletContext&nbsp;servletContext)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extract key that will be used to get the sub factory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#initFactory(javax.servlet.ServletContext, java.util.Map)">initFactory</A></B>(javax.servlet.ServletContext&nbsp;servletContext,
java.util.Map&nbsp;properties)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialization method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#initFactory(javax.servlet.ServletContext, java.lang.String)">initFactory</A></B>(javax.servlet.ServletContext&nbsp;servletContext,
java.lang.String&nbsp;proposedFilename)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialization method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#parseXmlFile(javax.servlet.ServletContext, java.lang.String, org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet)">parseXmlFile</A></B>(javax.servlet.ServletContext&nbsp;servletContext,
java.lang.String&nbsp;filename,
<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A>&nbsp;xmlDefinitions)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse specified xml file and add definition to specified definitions set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#parseXmlFiles(javax.servlet.ServletContext, java.lang.String, org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet)">parseXmlFiles</A></B>(javax.servlet.ServletContext&nbsp;servletContext,
java.lang.String&nbsp;postfix,
<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A>&nbsp;xmlDefinitions)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse files associated to postix if they exist.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#toString()">toString</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return String representation.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.apache.struts.tiles.xmlDefinition.FactorySet"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class org.apache.struts.tiles.xmlDefinition.<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#getDefinition(java.lang.String, javax.servlet.ServletRequest, javax.servlet.ServletContext)">getDefinition</A>, <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#getFactory(java.lang.Object, javax.servlet.ServletRequest, javax.servlet.ServletContext)">getFactory</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
protected static org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>Commons Logging instance.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="INSTANCES_CONFIG_PARAMETER_NAME"><!-- --></A><H3>
INSTANCES_CONFIG_PARAMETER_NAME</H3>
<PRE>
public static final java.lang.String <B>INSTANCES_CONFIG_PARAMETER_NAME</B></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use DEFINITIONS_CONFIG_PARAMETER_NAME</I>
<P>
<DD>Config file parameter name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.struts.tiles.xmlDefinition.I18nFactorySet.INSTANCES_CONFIG_PARAMETER_NAME">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DEFINITIONS_CONFIG_PARAMETER_NAME"><!-- --></A><H3>
DEFINITIONS_CONFIG_PARAMETER_NAME</H3>
<PRE>
public static final java.lang.String <B>DEFINITIONS_CONFIG_PARAMETER_NAME</B></PRE>
<DL>
<DD>Config file parameter name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.struts.tiles.xmlDefinition.I18nFactorySet.DEFINITIONS_CONFIG_PARAMETER_NAME">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PARSER_DETAILS_PARAMETER_NAME"><!-- --></A><H3>
PARSER_DETAILS_PARAMETER_NAME</H3>
<PRE>
public static final java.lang.String <B>PARSER_DETAILS_PARAMETER_NAME</B></PRE>
<DL>
<DD>Config file parameter name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.struts.tiles.xmlDefinition.I18nFactorySet.PARSER_DETAILS_PARAMETER_NAME">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PARSER_VALIDATE_PARAMETER_NAME"><!-- --></A><H3>
PARSER_VALIDATE_PARAMETER_NAME</H3>
<PRE>
public static final java.lang.String <B>PARSER_VALIDATE_PARAMETER_NAME</B></PRE>
<DL>
<DD>Config file parameter name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.struts.tiles.xmlDefinition.I18nFactorySet.PARSER_VALIDATE_PARAMETER_NAME">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DEFAULT_DEFINITION_FILENAMES"><!-- --></A><H3>
DEFAULT_DEFINITION_FILENAMES</H3>
<PRE>
public static final java.lang.String[] <B>DEFAULT_DEFINITION_FILENAMES</B></PRE>
<DL>
<DD>Possible definition filenames.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="defaultFactory"><!-- --></A><H3>
defaultFactory</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A> <B>defaultFactory</B></PRE>
<DL>
<DD>Default factory.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="xmlParser"><!-- --></A><H3>
xmlParser</H3>
<PRE>
protected transient <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlParser.html">XmlParser</A> <B>xmlParser</B></PRE>
<DL>
<DD>Xml parser used.
Attribute is transient to allow serialization. In this implementaiton,
xmlParser is created each time we need it ;-(.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="isValidatingParser"><!-- --></A><H3>
isValidatingParser</H3>
<PRE>
protected boolean <B>isValidatingParser</B></PRE>
<DL>
<DD>Do we want validating parser. Default is <code>false</code>.
Can be set from servlet config file.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="parserDetailLevel"><!-- --></A><H3>
parserDetailLevel</H3>
<PRE>
protected int <B>parserDetailLevel</B></PRE>
<DL>
<DD>Parser detail level. Default is 0.
Can be set from servlet config file.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="MAX_BUNDLES_SEARCHED"><!-- --></A><H3>
MAX_BUNDLES_SEARCHED</H3>
<PRE>
private static final int <B>MAX_BUNDLES_SEARCHED</B></PRE>
<DL>
<DD>Maximum length of one branch of the resource search path tree.
Used in getBundle().
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.struts.tiles.xmlDefinition.I18nFactorySet.MAX_BUNDLES_SEARCHED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FILENAME_EXTENSION"><!-- --></A><H3>
FILENAME_EXTENSION</H3>
<PRE>
public static final java.lang.String <B>FILENAME_EXTENSION</B></PRE>
<DL>
<DD>Default filenames extension.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.struts.tiles.xmlDefinition.I18nFactorySet.FILENAME_EXTENSION">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="filenames"><!-- --></A><H3>
filenames</H3>
<PRE>
private java.util.List <B>filenames</B></PRE>
<DL>
<DD>Names of files containing instances descriptions.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="loaded"><!-- --></A><H3>
loaded</H3>
<PRE>
private java.util.Map <B>loaded</B></PRE>
<DL>
<DD>Collection of already loaded definitions set, referenced by their suffix.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="I18nFactorySet()"><!-- --></A><H3>
I18nFactorySet</H3>
<PRE>
public <B>I18nFactorySet</B>()</PRE>
<DL>
<DD>Parameterless Constructor.
Method <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/I18nFactorySet.html#initFactory(javax.servlet.ServletContext, java.util.Map)"><CODE>initFactory(javax.servlet.ServletContext, java.util.Map)</CODE></A> must be called prior to any use of created factory.
<P>
</DL>
<HR>
<A NAME="I18nFactorySet(javax.servlet.ServletContext, java.util.Map)"><!-- --></A><H3>
I18nFactorySet</H3>
<PRE>
public <B>I18nFactorySet</B>(javax.servlet.ServletContext&nbsp;servletContext,
java.util.Map&nbsp;properties)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD>Constructor.
Init the factory by reading appropriate configuration file.
<P>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet context.<DD><CODE>properties</CODE> - Map containing all properties.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/FactoryNotFoundException.html">FactoryNotFoundException</A></CODE> - Can't find factory configuration file.
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE></DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="initFactory(javax.servlet.ServletContext, java.util.Map)"><!-- --></A><H3>
initFactory</H3>
<PRE>
public void <B>initFactory</B>(javax.servlet.ServletContext&nbsp;servletContext,
java.util.Map&nbsp;properties)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD>Initialization method.
Init the factory by reading appropriate configuration file.
This method is called exactly once immediately after factory creation in
case of internal creation (by DefinitionUtil).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/struts/tiles/ComponentDefinitionsFactory.html#initFactory(javax.servlet.ServletContext, java.util.Map)">initFactory</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/struts/tiles/ComponentDefinitionsFactory.html">ComponentDefinitionsFactory</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#initFactory(javax.servlet.ServletContext, java.util.Map)">initFactory</A></CODE> in class <CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>properties</CODE> - Map of name/property passed to newly created factory. Map can contains
more properties than requested.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - An error occur during initialization.</DL>
</DD>
</DL>
<HR>
<A NAME="initFactory(javax.servlet.ServletContext, java.lang.String)"><!-- --></A><H3>
initFactory</H3>
<PRE>
protected void <B>initFactory</B>(javax.servlet.ServletContext&nbsp;servletContext,
java.lang.String&nbsp;proposedFilename)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A>,
java.io.FileNotFoundException</PRE>
<DL>
<DD>Initialization method.
Init the factory by reading appropriate configuration file.
This method is called exactly once immediately after factory creation in
case of internal creation (by DefinitionUtil).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>proposedFilename</CODE> - File names, comma separated, to use as base file names.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - An error occur during initialization.
<DD><CODE>java.io.FileNotFoundException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getDefaultFactory()"><!-- --></A><H3>
getDefaultFactory</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A> <B>getDefaultFactory</B>()</PRE>
<DL>
<DD>Get default factory.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#getDefaultFactory()">getDefaultFactory</A></CODE> in class <CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Default factory</DL>
</DD>
</DL>
<HR>
<A NAME="createDefaultFactory(javax.servlet.ServletContext)"><!-- --></A><H3>
createDefaultFactory</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefaultFactory</B>(javax.servlet.ServletContext&nbsp;servletContext)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A>,
java.io.FileNotFoundException</PRE>
<DL>
<DD>Create default factory .
Create InstancesMapper for specified Locale.
If creation failes, use default mapper and log error message.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Current servlet context. Used to open file.
<DT><B>Returns:</B><DD>Created default definition factory.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while creating factory.
<DD><CODE>java.io.FileNotFoundException</CODE> - if factory can't be loaded from filenames.</DL>
</DD>
</DL>
<HR>
<A NAME="getDefinitionsFactoryKey(java.lang.String, javax.servlet.ServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
getDefinitionsFactoryKey</H3>
<PRE>
protected java.lang.Object <B>getDefinitionsFactoryKey</B>(java.lang.String&nbsp;name,
javax.servlet.ServletRequest&nbsp;request,
javax.servlet.ServletContext&nbsp;servletContext)</PRE>
<DL>
<DD>Extract key that will be used to get the sub factory.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#getDefinitionsFactoryKey(java.lang.String, javax.servlet.ServletRequest, javax.servlet.ServletContext)">getDefinitionsFactoryKey</A></CODE> in class <CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of requested definition<DD><CODE>request</CODE> - Current servlet request.<DD><CODE>servletContext</CODE> - Current servlet context.
<DT><B>Returns:</B><DD>the key or <code>null</code> if not found.</DL>
</DD>
</DL>
<HR>
<A NAME="createFactory(java.lang.Object, javax.servlet.ServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
createFactory</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html">DefinitionsFactory</A> <B>createFactory</B>(java.lang.Object&nbsp;key,
javax.servlet.ServletRequest&nbsp;request,
javax.servlet.ServletContext&nbsp;servletContext)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD>Create a factory for specified key.
If creation failes, return default factory and log an error message.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#createFactory(java.lang.Object, javax.servlet.ServletRequest, javax.servlet.ServletContext)">createFactory</A></CODE> in class <CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The key.<DD><CODE>request</CODE> - Servlet request.<DD><CODE>servletContext</CODE> - Servlet context.
<DT><B>Returns:</B><DD>Definition factory for specified key.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while creating factory.</DL>
</DD>
</DL>
<HR>
<A NAME="calculatePostixes(java.lang.String, java.util.Locale)"><!-- --></A><H3>
calculatePostixes</H3>
<PRE>
private static java.util.List <B>calculatePostixes</B>(java.lang.String&nbsp;baseName,
java.util.Locale&nbsp;locale)</PRE>
<DL>
<DD>Calculate the postixes along the search path from the base bundle to the
bundle specified by baseName and locale.
Method copied from java.util.ResourceBundle
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>baseName</CODE> - the base bundle name<DD><CODE>locale</CODE> - the locale</DL>
</DD>
</DL>
<HR>
<A NAME="parseXmlFiles(javax.servlet.ServletContext, java.lang.String, org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet)"><!-- --></A><H3>
parseXmlFiles</H3>
<PRE>
private <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A> <B>parseXmlFiles</B>(javax.servlet.ServletContext&nbsp;servletContext,
java.lang.String&nbsp;postfix,
<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A>&nbsp;xmlDefinitions)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD>Parse files associated to postix if they exist.
For each name in filenames, append postfix before file extension,
then try to load the corresponding file.
If file doesn't exist, try next one. Each file description is added to
the XmlDefinitionsSet description.
The XmlDefinitionsSet description is created only if there is a definition file.
Inheritance is not resolved in the returned XmlDefinitionsSet.
If no description file can be opened and no definiion set is provided, return <code>null</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>postfix</CODE> - Postfix to add to each description file.<DD><CODE>xmlDefinitions</CODE> - Definitions set to which definitions will be added. If <code>null</code>, a definitions
set is created on request.
<DT><B>Returns:</B><DD>XmlDefinitionsSet The definitions set created or passed as parameter.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - On errors parsing file.</DL>
</DD>
</DL>
<HR>
<A NAME="parseXmlFile(javax.servlet.ServletContext, java.lang.String, org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet)"><!-- --></A><H3>
parseXmlFile</H3>
<PRE>
private <A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A> <B>parseXmlFile</B>(javax.servlet.ServletContext&nbsp;servletContext,
java.lang.String&nbsp;filename,
<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlDefinitionsSet.html">XmlDefinitionsSet</A>&nbsp;xmlDefinitions)
throws <A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD>Parse specified xml file and add definition to specified definitions set.
This method is used to load several description files in one instances list.
If filename exists and definition set is <code>null</code>, create a new set. Otherwise, return
passed definition set (can be <code>null</code>).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Current servlet context. Used to open file.<DD><CODE>filename</CODE> - Name of file to parse.<DD><CODE>xmlDefinitions</CODE> - Definitions set to which definitions will be added. If null, a definitions
set is created on request.
<DT><B>Returns:</B><DD>XmlDefinitionsSet The definitions set created or passed as parameter.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - On errors parsing file.</DL>
</DD>
</DL>
<HR>
<A NAME="concatPostfix(java.lang.String, java.lang.String)"><!-- --></A><H3>
concatPostfix</H3>
<PRE>
private java.lang.String <B>concatPostfix</B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;postfix)</PRE>
<DL>
<DD>Concat postfix to the name. Take care of existing filename extension.
Transform the given name "name.ext" to have "name" + "postfix" + "ext".
If there is no ext, return "name" + "postfix".
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Filename.<DD><CODE>postfix</CODE> - Postfix to add.
<DT><B>Returns:</B><DD>Concatenated filename.</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Return String representation.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html">FactorySet</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>String representation.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/I18nFactorySet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/FactorySet.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/apache/struts/tiles/xmlDefinition/XmlAttribute.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="I18nFactorySet.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
Copyright © 2000-2003 - Apache Software Foundation
</BODY>
</HTML>