blob: 96629bf833c47b63d1f39a27bcb2e71f362876e9 [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:35 PDT 2012 -->
<TITLE>
ElemContext
</TITLE>
<META NAME="keywords" CONTENT="org.apache.xml.serializer.ElemContext class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="ElemContext";
}
</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/ElemContext.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/serializer/DOMSerializer.html" title="interface in org.apache.xml.serializer"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xml/serializer/ElemDesc.html" title="class in org.apache.xml.serializer"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xml/serializer/ElemContext.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ElemContext.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.serializer</FONT>
<BR>
Class ElemContext</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.serializer.ElemContext</B>
</PRE>
<HR>
<DL>
<DT><PRE>final class <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.53"><B>ElemContext</B></A><DT>extends java.lang.Object</DL>
</PRE>
<P>
This class is a stack frame that consists of
information about the element currently being processed
by a serializer. Consider this example:
<pre>
<A>
<B1>
</B1>
<B2>
</B2>
<A>
</pre>
A stack frame will be pushed for "A" at depth 1,
then another one for "B1" at depth 2.
Then "B1" stackframe is popped. When the stack frame for "B2" is
pushed, this implementation re-uses the old stack fram object used
by "B1" to be efficient at not creating too many of these object.
This is by no means a public class, and neither are its fields or methods,
they are all helper fields for a serializer.
The purpose of this class is to be more consistent with pushing information
when a new element is being serialized and more quickly restoring the old
information about the parent element with a simple pop() when the
child element is done. Previously there was some redundant and error-prone
calculations going on to retore information.
<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;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_currentElemDepth">m_currentElemDepth</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The nesting depth of the element inside other elements.</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/serializer/ElemDesc.html" title="class in org.apache.xml.serializer">ElemDesc</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_elementDesc">m_elementDesc</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HTML field, the element description of the HTML element</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/serializer/ElemContext.html#m_elementLocalName">m_elementLocalName</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The local name of the element.</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/serializer/ElemContext.html#m_elementName">m_elementName</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The fully qualified name of the element (with prefix, if any).</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/serializer/ElemContext.html#m_elementURI">m_elementURI</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The URI of the element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_isCdataSection">m_isCdataSection</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the element is in the cdata-section-names list
then the value is true.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_isRaw">m_isRaw</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if the current element has output escaping disabled.</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/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_next">m_next</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The next element "stack frame".</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/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_prev">m_prev</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The previous element "stack frame".</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#m_startTagOpen">m_startTagOpen</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set to true when a start tag is started, or open, but not all the
attributes or namespace information is yet collected.</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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private)</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#ElemContext()">ElemContext</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor to create the root of the element contexts.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#ElemContext(org.apache.xml.serializer.ElemContext)">ElemContext</A></B>(<A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A>&nbsp;previous)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor to create the "stack frame" for a given element depth.</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>(package private) &nbsp;<A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#pop()">pop</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pop the current "stack frame".</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/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#push()">push</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method pushes an element "stack frame"
but with no initialization of values in that frame.</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/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ElemContext.html#push(java.lang.String, java.lang.String, java.lang.String)">push</A></B>(java.lang.String&nbsp;uri,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;qName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Push an element context on the stack.</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="m_currentElemDepth"><!-- --></A><H3>
m_currentElemDepth</H3>
<PRE>
final int <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.60"><B>m_currentElemDepth</B></A></PRE>
<DL>
<DD>The nesting depth of the element inside other elements.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_elementDesc"><!-- --></A><H3>
m_elementDesc</H3>
<PRE>
<A HREF="../../../../org/apache/xml/serializer/ElemDesc.html" title="class in org.apache.xml.serializer">ElemDesc</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.63"><B>m_elementDesc</B></A></PRE>
<DL>
<DD>HTML field, the element description of the HTML element
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_elementLocalName"><!-- --></A><H3>
m_elementLocalName</H3>
<PRE>
java.lang.String <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.68"><B>m_elementLocalName</B></A></PRE>
<DL>
<DD>The local name of the element.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_elementName"><!-- --></A><H3>
m_elementName</H3>
<PRE>
java.lang.String <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.73"><B>m_elementName</B></A></PRE>
<DL>
<DD>The fully qualified name of the element (with prefix, if any).
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_elementURI"><!-- --></A><H3>
m_elementURI</H3>
<PRE>
java.lang.String <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.81"><B>m_elementURI</B></A></PRE>
<DL>
<DD>The URI of the element.
If this value is null it means that the URI is not yet determined
for the element. Valid values are the empty string "", meaning
that it is in no namespace, or a string of non-zero length.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_isCdataSection"><!-- --></A><H3>
m_isCdataSection</H3>
<PRE>
boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.87"><B>m_isCdataSection</B></A></PRE>
<DL>
<DD>If the element is in the cdata-section-names list
then the value is true. If it is true the text children of the element
should be output in CDATA section blocks.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_isRaw"><!-- --></A><H3>
m_isRaw</H3>
<PRE>
boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.92"><B>m_isRaw</B></A></PRE>
<DL>
<DD>True if the current element has output escaping disabled.
This is true for SCRIPT and STYLE elements.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_next"><!-- --></A><H3>
m_next</H3>
<PRE>
private <A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.106"><B>m_next</B></A></PRE>
<DL>
<DD>The next element "stack frame". This value will only be
set once as deeper stack frames are not deleted when popped off,
but are rather re-used when a push is required.
This makes for very fast pushing and popping of stack frames
because very few stack frame objects are ever created, they are
mostly re-used. This re-use saves object creation but it also means
that connections between the frames via m_next and m_prev
never changes either. Just the contents of the frames change
as they are re-used. Only the reference to the current stack frame, which
is held by the serializer is changed via a quick pop() or push().
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_prev"><!-- --></A><H3>
m_prev</H3>
<PRE>
final <A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.109"><B>m_prev</B></A></PRE>
<DL>
<DD>The previous element "stack frame".
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_startTagOpen"><!-- --></A><H3>
m_startTagOpen</H3>
<PRE>
boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.115"><B>m_startTagOpen</B></A></PRE>
<DL>
<DD>Set to true when a start tag is started, or open, but not all the
attributes or namespace information is yet collected.
<P>
<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="ElemContext()"><!-- --></A><H3>
ElemContext</H3>
<PRE>
<A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.121"><B>ElemContext</B></A>()</PRE>
<DL>
<DD>Constructor to create the root of the element contexts.
<P>
</DL>
<HR>
<A NAME="ElemContext(org.apache.xml.serializer.ElemContext)"><!-- --></A><H3>
ElemContext</H3>
<PRE>
private <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.139"><B>ElemContext</B></A>(<A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A>&nbsp;previous)</PRE>
<DL>
<DD>Constructor to create the "stack frame" for a given element depth.
This implementation will re-use the context at each depth. If
a documents deepest element depth is N then there will be (N+1)
such objects created, no more than that.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>previous</CODE> - The "stack frame" corresponding to the new
elements parent element.</DL>
</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="pop()"><!-- --></A><H3>
pop</H3>
<PRE>
final <A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.149"><B>pop</B></A>()</PRE>
<DL>
<DD>Pop the current "stack frame".
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the parent "stack frame" of the one popped.</DL>
</DD>
</DL>
<HR>
<A NAME="push()"><!-- --></A><H3>
push</H3>
<PRE>
final <A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.165"><B>push</B></A>()</PRE>
<DL>
<DD>This method pushes an element "stack frame"
but with no initialization of values in that frame.
This method is used for optimization purposes, like when pushing
a stack frame for an HTML "IMG" tag which has no children and
the stack frame will almost immediately be popped.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="push(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
push</H3>
<PRE>
final <A HREF="../../../../org/apache/xml/serializer/ElemContext.html" title="class in org.apache.xml.serializer">ElemContext</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ElemContext.html#line.196"><B>push</B></A>(java.lang.String&nbsp;uri,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;qName)</PRE>
<DL>
<DD>Push an element context on the stack. This context keeps track of
information gathered about the element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - The URI for the namespace for the element name,
can be null if it is not yet known.<DD><CODE>localName</CODE> - The local name of the element (no prefix),
can be null.<DD><CODE>qName</CODE> - The qualified name (with prefix, if any)
of the element, this parameter is required.</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/ElemContext.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/serializer/DOMSerializer.html" title="interface in org.apache.xml.serializer"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xml/serializer/ElemDesc.html" title="class in org.apache.xml.serializer"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xml/serializer/ElemContext.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ElemContext.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>