| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Wed Apr 14 08:26:32 EDT 2004 --> |
| <TITLE> |
| Velocity 1.4 API: Class VelocimacroManager |
| </TITLE> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <BODY BGCOLOR="white"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=2 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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="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/VelocimacroManager.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/velocity/runtime/VelocimacroFactory.Twonk.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.MacroEntry.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> |
| <A HREF="VelocimacroManager.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.velocity.runtime</FONT> |
| <BR> |
| Class VelocimacroManager</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.velocity.runtime.VelocimacroManager</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT>public class <B>VelocimacroManager</B><DT>extends java.lang.Object</DL> |
| |
| <P> |
| Manages VMs in namespaces. Currently, two namespace modes are |
| supported: |
| |
| <ul> |
| <li>flat - all allowable VMs are in the global namespace</li> |
| <li>local - inline VMs are added to it's own template namespace</li> |
| </ul> |
| |
| Thanks to <a href="mailto:JFernandez@viquity.com">Jose Alberto Fernandez</a> |
| for some ideas incorporated here. |
| <P> |
| <DL> |
| <DT><B>Version: </B><DD>$Id: VelocimacroManager.java,v 1.17.4.1 2004/03/03 23:22:55 geirm Exp $</DD> |
| <DT><B>Author: </B><DD><a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>, <a href="mailto:JFernandez@viquity.com">Jose Alberto Fernandez</a></DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- ======== INNER CLASS SUMMARY ======== --> |
| |
| <A NAME="inner_class_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Inner Class Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected class</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.MacroEntry.html">VelocimacroManager.MacroEntry</A></B></CODE> |
| |
| <BR> |
| wrapper class for holding VM information</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- =========== 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>private static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#GLOBAL_NAMESPACE">GLOBAL_NAMESPACE</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#inlineLocalMode">inlineLocalMode</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private java.util.Hashtable</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#libraryMap">libraryMap</A></B></CODE> |
| |
| <BR> |
| map of names of library tempates/namespaces</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private java.util.Hashtable</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#namespaceHash">namespaceHash</A></B></CODE> |
| |
| <BR> |
| Hash of namespace hashes.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#namespacesOn">namespacesOn</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#registerFromLib">registerFromLib</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private <A HREF="../../../../org/apache/velocity/runtime/RuntimeServices.html">RuntimeServices</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#rsvc">rsvc</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== 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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>(package private)</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#VelocimacroManager(org.apache.velocity.runtime.RuntimeServices)">VelocimacroManager</A></B>(<A HREF="../../../../org/apache/velocity/runtime/RuntimeServices.html">RuntimeServices</A> rs)</CODE> |
| |
| <BR> |
| Adds the global namespace to the hash.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== 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 java.util.Hashtable</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#addNamespace(java.lang.String)">addNamespace</A></B>(java.lang.String namespace)</CODE> |
| |
| <BR> |
| adds a namespace to the namespaces</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#addVM(java.lang.String, java.lang.String, java.lang.String[], java.lang.String)">addVM</A></B>(java.lang.String vmName, |
| java.lang.String macroBody, |
| java.lang.String[] argArray, |
| java.lang.String namespace)</CODE> |
| |
| <BR> |
| Adds a VM definition to the cache.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#dumpNamespace(java.lang.String)">dumpNamespace</A></B>(java.lang.String namespace)</CODE> |
| |
| <BR> |
| Removes the VMs and the namespace from the manager.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/velocity/runtime/directive/VelocimacroProxy.html">VelocimacroProxy</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#get(java.lang.String, java.lang.String)">get</A></B>(java.lang.String vmName, |
| java.lang.String namespace)</CODE> |
| |
| <BR> |
| gets a new living VelocimacroProxy object by the |
| name / source template duple</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#getLibraryName(java.lang.String, java.lang.String)">getLibraryName</A></B>(java.lang.String vmName, |
| java.lang.String namespace)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private java.util.Hashtable</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#getNamespace(java.lang.String)">getNamespace</A></B>(java.lang.String namespace)</CODE> |
| |
| <BR> |
| returns the hash for the specified namespace.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private java.util.Hashtable</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#getNamespace(java.lang.String, boolean)">getNamespace</A></B>(java.lang.String namespace, |
| boolean addIfNew)</CODE> |
| |
| <BR> |
| returns the hash for the specified namespace, and if it doesn't exist |
| will create a new one and add it to the namespaces</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/velocity/runtime/VelocimacroManager.html#setNamespaceUsage(boolean)">setNamespaceUsage</A></B>(boolean b)</CODE> |
| |
| <BR> |
| public switch to let external user of manager to control namespace |
| usage indep of properties.</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/velocity/runtime/VelocimacroManager.html#setRegisterFromLib(boolean)">setRegisterFromLib</A></B>(boolean b)</CODE> |
| |
| <BR> |
| </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/velocity/runtime/VelocimacroManager.html#setTemplateLocalInlineVM(boolean)">setTemplateLocalInlineVM</A></B>(boolean b)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.html#usingNamespaces(java.lang.String)">usingNamespaces</A></B>(java.lang.String namespace)</CODE> |
| |
| <BR> |
| determines if currently using namespaces.</TD> |
| </TR> |
| </TABLE> |
| <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><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <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="rsvc"><!-- --></A><H3> |
| rsvc</H3> |
| <PRE> |
| private <A HREF="../../../../org/apache/velocity/runtime/RuntimeServices.html">RuntimeServices</A> <B>rsvc</B></PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="GLOBAL_NAMESPACE"><!-- --></A><H3> |
| GLOBAL_NAMESPACE</H3> |
| <PRE> |
| private static java.lang.String <B>GLOBAL_NAMESPACE</B></PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="registerFromLib"><!-- --></A><H3> |
| registerFromLib</H3> |
| <PRE> |
| private boolean <B>registerFromLib</B></PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="namespaceHash"><!-- --></A><H3> |
| namespaceHash</H3> |
| <PRE> |
| private java.util.Hashtable <B>namespaceHash</B></PRE> |
| <DL> |
| <DD>Hash of namespace hashes.</DL> |
| <HR> |
| |
| <A NAME="libraryMap"><!-- --></A><H3> |
| libraryMap</H3> |
| <PRE> |
| private java.util.Hashtable <B>libraryMap</B></PRE> |
| <DL> |
| <DD>map of names of library tempates/namespaces</DL> |
| <HR> |
| |
| <A NAME="namespacesOn"><!-- --></A><H3> |
| namespacesOn</H3> |
| <PRE> |
| private boolean <B>namespacesOn</B></PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="inlineLocalMode"><!-- --></A><H3> |
| inlineLocalMode</H3> |
| <PRE> |
| private boolean <B>inlineLocalMode</B></PRE> |
| <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="VelocimacroManager(org.apache.velocity.runtime.RuntimeServices)"><!-- --></A><H3> |
| VelocimacroManager</H3> |
| <PRE> |
| <B>VelocimacroManager</B>(<A HREF="../../../../org/apache/velocity/runtime/RuntimeServices.html">RuntimeServices</A> rs)</PRE> |
| <DL> |
| <DD>Adds the global namespace to the hash.</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="addVM(java.lang.String, java.lang.String, java.lang.String[], java.lang.String)"><!-- --></A><H3> |
| addVM</H3> |
| <PRE> |
| public boolean <B>addVM</B>(java.lang.String vmName, |
| java.lang.String macroBody, |
| java.lang.String[] argArray, |
| java.lang.String namespace)</PRE> |
| <DL> |
| <DD>Adds a VM definition to the cache.<DD><DL> |
| <DT><B>Returns:</B><DD>Whether everything went okay.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/velocity/runtime/directive/VelocimacroProxy.html">VelocimacroProxy</A> <B>get</B>(java.lang.String vmName, |
| java.lang.String namespace)</PRE> |
| <DL> |
| <DD>gets a new living VelocimacroProxy object by the |
| name / source template duple</DL> |
| <HR> |
| |
| <A NAME="dumpNamespace(java.lang.String)"><!-- --></A><H3> |
| dumpNamespace</H3> |
| <PRE> |
| public boolean <B>dumpNamespace</B>(java.lang.String namespace)</PRE> |
| <DL> |
| <DD>Removes the VMs and the namespace from the manager. |
| Used when a template is reloaded to avoid |
| accumulating drek<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - namespace to dump<DT><B>Returns:</B><DD>boolean representing success</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setNamespaceUsage(boolean)"><!-- --></A><H3> |
| setNamespaceUsage</H3> |
| <PRE> |
| public void <B>setNamespaceUsage</B>(boolean b)</PRE> |
| <DL> |
| <DD>public switch to let external user of manager to control namespace |
| usage indep of properties. That way, for example, at startup the |
| library files are loaded into global namespace</DL> |
| <HR> |
| |
| <A NAME="setRegisterFromLib(boolean)"><!-- --></A><H3> |
| setRegisterFromLib</H3> |
| <PRE> |
| public void <B>setRegisterFromLib</B>(boolean b)</PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="setTemplateLocalInlineVM(boolean)"><!-- --></A><H3> |
| setTemplateLocalInlineVM</H3> |
| <PRE> |
| public void <B>setTemplateLocalInlineVM</B>(boolean b)</PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="getNamespace(java.lang.String)"><!-- --></A><H3> |
| getNamespace</H3> |
| <PRE> |
| private java.util.Hashtable <B>getNamespace</B>(java.lang.String namespace)</PRE> |
| <DL> |
| <DD>returns the hash for the specified namespace. Will not create a new one |
| if it doesn't exist<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - name of the namespace :)<DT><B>Returns:</B><DD>namespace Hashtable of VMs or null if doesn't exist</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getNamespace(java.lang.String, boolean)"><!-- --></A><H3> |
| getNamespace</H3> |
| <PRE> |
| private java.util.Hashtable <B>getNamespace</B>(java.lang.String namespace, |
| boolean addIfNew)</PRE> |
| <DL> |
| <DD>returns the hash for the specified namespace, and if it doesn't exist |
| will create a new one and add it to the namespaces<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - name of the namespace :)<DD><CODE>addIfNew</CODE> - flag to add a new namespace if it doesn't exist<DT><B>Returns:</B><DD>namespace Hashtable of VMs or null if doesn't exist</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addNamespace(java.lang.String)"><!-- --></A><H3> |
| addNamespace</H3> |
| <PRE> |
| private java.util.Hashtable <B>addNamespace</B>(java.lang.String namespace)</PRE> |
| <DL> |
| <DD>adds a namespace to the namespaces<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - name of namespace to add<DT><B>Returns:</B><DD>Hash added to namespaces, ready for use</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="usingNamespaces(java.lang.String)"><!-- --></A><H3> |
| usingNamespaces</H3> |
| <PRE> |
| private boolean <B>usingNamespaces</B>(java.lang.String namespace)</PRE> |
| <DL> |
| <DD>determines if currently using namespaces.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - currently ignored<DT><B>Returns:</B><DD>true if using namespaces, false if not</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLibraryName(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| getLibraryName</H3> |
| <PRE> |
| public java.lang.String <B>getLibraryName</B>(java.lang.String vmName, |
| java.lang.String namespace)</PRE> |
| <DL> |
| </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=2 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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="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/VelocimacroManager.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/velocity/runtime/VelocimacroFactory.Twonk.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/velocity/runtime/VelocimacroManager.MacroEntry.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> |
| <A HREF="VelocimacroManager.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2002 Apache Software Foundation. All Rights Reserved. |
| </BODY> |
| </HTML> |