blob: 6e07c78c2005b9ab0e0df0e6dbed444ad4fa62a2 [file] [log] [blame]
<!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_18) on Sun Apr 01 21:18:38 PDT 2012 -->
<TITLE>
Context2
</TITLE>
<META NAME="keywords" CONTENT="org.apache.xml.utils.Context2 class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Context2";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= 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="../../../../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/Context2.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/xml/utils/Constants.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xml/utils/DefaultErrorHandler.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xml/utils/Context2.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Context2.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</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:&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>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.xml.utils</FONT>
<BR>
Class Context2</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.utils.Context2</B>
</PRE>
<HR>
<DL>
<DT><PRE>final class <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.441"><B>Context2</B></A><DT>extends java.lang.Object</DL>
</PRE>
<P>
Internal class for a single Namespace context.
<p>This module caches and reuses Namespace contexts, so the number allocated
will be equal to the element depth of the document, not to the total
number of elements (i.e. 5-10 rather than tens of thousands).</p>
<P>
<P>
<HR>
<P>
<!-- =========== 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>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.util.Hashtable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#attributeNameTable">attributeNameTable</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#child">child</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.util.Vector</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#declarations">declarations</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#defaultNS">defaultNS</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.util.Hashtable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#elementNameTable">elementNameTable</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#EMPTY_ENUMERATION">EMPTY_ENUMERATION</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An empty enumeration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#parent">parent</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.util.Hashtable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#prefixTable">prefixTable</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#tablesDirty">tablesDirty</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.util.Hashtable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#uriTable">uriTable</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== 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/xml/utils/Context2.html#Context2(org.apache.xml.utils.Context2)">Context2</A></B>(<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A>&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new Namespace context.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#copyTables()">copyTables</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy on write for the internal tables in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#declarePrefix(java.lang.String, java.lang.String)">declarePrefix</A></B>(java.lang.String&nbsp;prefix,
java.lang.String&nbsp;uri)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Declare a Namespace prefix for this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#getChild()">getChild</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#getDeclaredPrefixes()">getDeclaredPrefixes</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an enumeration of prefixes declared in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#getParent()">getParent</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#getPrefix(java.lang.String)">getPrefix</A></B>(java.lang.String&nbsp;uri)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Look up one of the prefixes associated with a URI in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#getPrefixes()">getPrefixes</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an enumeration of all prefixes currently in force.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#getURI(java.lang.String)">getURI</A></B>(java.lang.String&nbsp;prefix)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Look up the URI associated with a prefix in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#processName(java.lang.String, boolean)">processName</A></B>(java.lang.String&nbsp;qName,
boolean&nbsp;isAttribute)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process a raw XML 1.0 name in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/Context2.html#setParent(org.apache.xml.utils.Context2)">setParent</A></B>(<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A>&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Re)set the parent of this Namespace context.</TD>
</TR>
</TABLE>
&nbsp;<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.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="EMPTY_ENUMERATION"><!-- --></A><H3>
EMPTY_ENUMERATION</H3>
<PRE>
private static final java.util.Enumeration <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.450"><B>EMPTY_ENUMERATION</B></A></PRE>
<DL>
<DD>An empty enumeration.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="prefixTable"><!-- --></A><H3>
prefixTable</H3>
<PRE>
java.util.Hashtable <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.457"><B>prefixTable</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="uriTable"><!-- --></A><H3>
uriTable</H3>
<PRE>
java.util.Hashtable <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.458"><B>uriTable</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="elementNameTable"><!-- --></A><H3>
elementNameTable</H3>
<PRE>
java.util.Hashtable <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.459"><B>elementNameTable</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="attributeNameTable"><!-- --></A><H3>
attributeNameTable</H3>
<PRE>
java.util.Hashtable <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.460"><B>attributeNameTable</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="defaultNS"><!-- --></A><H3>
defaultNS</H3>
<PRE>
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.461"><B>defaultNS</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="declarations"><!-- --></A><H3>
declarations</H3>
<PRE>
private java.util.Vector <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.467"><B>declarations</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="tablesDirty"><!-- --></A><H3>
tablesDirty</H3>
<PRE>
private boolean <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.468"><B>tablesDirty</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="parent"><!-- --></A><H3>
parent</H3>
<PRE>
private <A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A> <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.469"><B>parent</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="child"><!-- --></A><H3>
child</H3>
<PRE>
private <A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A> <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.470"><B>child</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= 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="Context2(org.apache.xml.utils.Context2)"><!-- --></A><H3>
Context2</H3>
<PRE>
<A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.475"><B>Context2</B></A>(<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A>&nbsp;parent)</PRE>
<DL>
<DD>Create a new Namespace context.
<P>
</DL>
<!-- ============ 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="getChild()"><!-- --></A><H3>
getChild</H3>
<PRE>
<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A> <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.493"><B>getChild</B></A>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getParent()"><!-- --></A><H3>
getParent</H3>
<PRE>
<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A> <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.502"><B>getParent</B></A>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setParent(org.apache.xml.utils.Context2)"><!-- --></A><H3>
setParent</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.514"><B>setParent</B></A>(<A HREF="../../../../org/apache/xml/utils/Context2.html" title="class in org.apache.xml.utils">Context2</A>&nbsp;parent)</PRE>
<DL>
<DD>(Re)set the parent of this Namespace context.
This is separate from the c'tor because it's re-applied
when a Context2 is reused by push-after-pop.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - The parent Namespace context object.</DL>
</DD>
</DL>
<HR>
<A NAME="declarePrefix(java.lang.String, java.lang.String)"><!-- --></A><H3>
declarePrefix</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.535"><B>declarePrefix</B></A>(java.lang.String&nbsp;prefix,
java.lang.String&nbsp;uri)</PRE>
<DL>
<DD>Declare a Namespace prefix for this context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The prefix to declare.<DD><CODE>uri</CODE> - The associated Namespace URI.<DT><B>See Also:</B><DD><CODE>org.xml.sax.helpers.NamespaceSupport2#declarePrefix</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="processName(java.lang.String, boolean)"><!-- --></A><H3>
processName</H3>
<PRE>
java.lang.String[] <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.572"><B>processName</B></A>(java.lang.String&nbsp;qName,
boolean&nbsp;isAttribute)</PRE>
<DL>
<DD>Process a raw XML 1.0 name in this context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>qName</CODE> - The raw XML 1.0 name.<DD><CODE>isAttribute</CODE> - true if this is an attribute name.
<DT><B>Returns:</B><DD>An array of three strings containing the
URI part (or empty string), the local part,
and the raw name, all internalized, or null
if there is an undeclared prefix.<DT><B>See Also:</B><DD><CODE>org.xml.sax.helpers.NamespaceSupport2#processName</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getURI(java.lang.String)"><!-- --></A><H3>
getURI</H3>
<PRE>
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.646"><B>getURI</B></A>(java.lang.String&nbsp;prefix)</PRE>
<DL>
<DD>Look up the URI associated with a prefix in this context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The prefix to look up.
<DT><B>Returns:</B><DD>The associated Namespace URI, or null if none is
declared.<DT><B>See Also:</B><DD><CODE>org.xml.sax.helpers.NamespaceSupport2#getURI</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getPrefix(java.lang.String)"><!-- --></A><H3>
getPrefix</H3>
<PRE>
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.668"><B>getPrefix</B></A>(java.lang.String&nbsp;uri)</PRE>
<DL>
<DD>Look up one of the prefixes associated with a URI in this context.
<p>Since many prefixes may be mapped to the same URI,
the return value may be unreliable.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - The URI to look up.
<DT><B>Returns:</B><DD>The associated prefix, or null if none is declared.<DT><B>See Also:</B><DD><CODE>org.xml.sax.helpers.NamespaceSupport2#getPrefix</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getDeclaredPrefixes()"><!-- --></A><H3>
getDeclaredPrefixes</H3>
<PRE>
java.util.Enumeration <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.684"><B>getDeclaredPrefixes</B></A>()</PRE>
<DL>
<DD>Return an enumeration of prefixes declared in this context.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>An enumeration of prefixes (possibly empty).<DT><B>See Also:</B><DD><CODE>org.xml.sax.helpers.NamespaceSupport2#getDeclaredPrefixes</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getPrefixes()"><!-- --></A><H3>
getPrefixes</H3>
<PRE>
java.util.Enumeration <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.703"><B>getPrefixes</B></A>()</PRE>
<DL>
<DD>Return an enumeration of all prefixes currently in force.
<p>The default prefix, if in force, is <em>not</em>
returned, and will have to be checked for separately.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>An enumeration of prefixes (never empty).<DT><B>See Also:</B><DD><CODE>org.xml.sax.helpers.NamespaceSupport2#getPrefixes</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="copyTables()"><!-- --></A><H3>
copyTables</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/utils/Context2.html#line.728"><B>copyTables</B></A>()</PRE>
<DL>
<DD>Copy on write for the internal tables in this context.
<p>This class is optimized for the normal case where most
elements do not contain Namespace declarations. In that case,
the Context2 will share data structures with its parent.
New tables are obtained only when new declarations are issued,
so they can be popped off the stack.</p>
<p> JJK: **** Alternative: each Context2 might declare
_only_ its local bindings, and delegate upward if not found.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" 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_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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/Context2.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/xml/utils/Constants.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xml/utils/DefaultErrorHandler.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xml/utils/Context2.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Context2.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</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:&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>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>