<!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> | |
ObjectVector | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.xml.utils.ObjectVector class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="ObjectVector"; | |
} | |
</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> </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/ObjectVector.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/xml/utils/ObjectStack.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/PrefixForUriEnumerator.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/ObjectVector.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ObjectVector.html" target="_top"><B>NO FRAMES</B></A> | |
<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: NESTED | <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> | |
<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 ObjectVector</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.utils.ObjectVector</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable</DD> | |
</DL> | |
<DL> | |
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/xml/utils/ObjectStack.html" title="class in org.apache.xml.utils">ObjectStack</A></DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.33"><B>ObjectVector</B></A><DT>extends java.lang.Object<DT>implements java.lang.Cloneable</DL> | |
</PRE> | |
<P> | |
A very simple table that stores a list of objects. | |
This version is based on a "realloc" strategy -- a simle array is | |
used, and when more storage is needed, a larger array is obtained | |
and all existing data is recopied into it. As a result, read/write | |
access to existing nodes is O(1) fast but appending may be O(N**2) | |
slow. | |
<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>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#m_blocksize">m_blocksize</A></B></CODE> | |
<BR> | |
Size of blocks to allocate</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#m_firstFree">m_firstFree</A></B></CODE> | |
<BR> | |
Number of ints in array</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.lang.Object[]</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#m_map">m_map</A></B></CODE> | |
<BR> | |
Array of objects</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#m_mapSize">m_mapSize</A></B></CODE> | |
<BR> | |
Size of array</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== 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/ObjectVector.html#ObjectVector()">ObjectVector</A></B>()</CODE> | |
<BR> | |
Default constructor.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#ObjectVector(int)">ObjectVector</A></B>(int blocksize)</CODE> | |
<BR> | |
Construct a IntVector, using the given block size.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#ObjectVector(int, int)">ObjectVector</A></B>(int blocksize, | |
int increaseSize)</CODE> | |
<BR> | |
Construct a IntVector, using the given block size.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#ObjectVector(org.apache.xml.utils.ObjectVector)">ObjectVector</A></B>(<A HREF="../../../../org/apache/xml/utils/ObjectVector.html" title="class in org.apache.xml.utils">ObjectVector</A> v)</CODE> | |
<BR> | |
Copy constructor for ObjectVector</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#addElement(java.lang.Object)">addElement</A></B>(java.lang.Object value)</CODE> | |
<BR> | |
Append an object onto the vector.</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/xml/utils/ObjectVector.html#addElements(int)">addElements</A></B>(int numberOfElements)</CODE> | |
<BR> | |
Append several slots onto the vector, but do not set the values.</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/xml/utils/ObjectVector.html#addElements(java.lang.Object, int)">addElements</A></B>(java.lang.Object value, | |
int numberOfElements)</CODE> | |
<BR> | |
Append several Object values onto the vector.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#clone()">clone</A></B>()</CODE> | |
<BR> | |
Returns clone of current ObjectVector</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/xml/utils/ObjectVector.html#contains(java.lang.Object)">contains</A></B>(java.lang.Object s)</CODE> | |
<BR> | |
Tell if the table contains the given Object.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#elementAt(int)">elementAt</A></B>(int i)</CODE> | |
<BR> | |
Get the nth element.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#indexOf(java.lang.Object)">indexOf</A></B>(java.lang.Object elem)</CODE> | |
<BR> | |
Searches for the first occurence of the given argument, | |
beginning the search at index, and testing for equality | |
using the equals method.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#indexOf(java.lang.Object, int)">indexOf</A></B>(java.lang.Object elem, | |
int index)</CODE> | |
<BR> | |
Searches for the first occurence of the given argument, | |
beginning the search at index, and testing for equality | |
using the equals method.</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/xml/utils/ObjectVector.html#insertElementAt(java.lang.Object, int)">insertElementAt</A></B>(java.lang.Object value, | |
int at)</CODE> | |
<BR> | |
Inserts the specified object in this vector at the specified index.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#lastIndexOf(java.lang.Object)">lastIndexOf</A></B>(java.lang.Object elem)</CODE> | |
<BR> | |
Searches for the first occurence of the given argument, | |
beginning the search at index, and testing for equality | |
using the equals method.</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/xml/utils/ObjectVector.html#removeAllElements()">removeAllElements</A></B>()</CODE> | |
<BR> | |
Remove all elements objects from the list.</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/xml/utils/ObjectVector.html#removeElement(java.lang.Object)">removeElement</A></B>(java.lang.Object s)</CODE> | |
<BR> | |
Removes the first occurrence of the argument from this vector.</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/xml/utils/ObjectVector.html#removeElementAt(int)">removeElementAt</A></B>(int i)</CODE> | |
<BR> | |
Deletes the component at the specified index.</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/xml/utils/ObjectVector.html#setElementAt(java.lang.Object, int)">setElementAt</A></B>(java.lang.Object value, | |
int index)</CODE> | |
<BR> | |
Sets the component at the specified index of this vector to be the | |
specified object.</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/xml/utils/ObjectVector.html#setSize(int)">setSize</A></B>(int sz)</CODE> | |
<BR> | |
Get the length of the list.</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/xml/utils/ObjectVector.html#setToSize(int)">setToSize</A></B>(int size)</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/ObjectVector.html#size()">size</A></B>()</CODE> | |
<BR> | |
Get the length of the list.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<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_blocksize"><!-- --></A><H3> | |
m_blocksize</H3> | |
<PRE> | |
protected int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.37"><B>m_blocksize</B></A></PRE> | |
<DL> | |
<DD>Size of blocks to allocate | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_map"><!-- --></A><H3> | |
m_map</H3> | |
<PRE> | |
protected java.lang.Object[] <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.40"><B>m_map</B></A></PRE> | |
<DL> | |
<DD>Array of objects | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_firstFree"><!-- --></A><H3> | |
m_firstFree</H3> | |
<PRE> | |
protected int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.43"><B>m_firstFree</B></A></PRE> | |
<DL> | |
<DD>Number of ints in array | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_mapSize"><!-- --></A><H3> | |
m_mapSize</H3> | |
<PRE> | |
protected int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.46"><B>m_mapSize</B></A></PRE> | |
<DL> | |
<DD>Size of array | |
<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="ObjectVector()"><!-- --></A><H3> | |
ObjectVector</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.52"><B>ObjectVector</B></A>()</PRE> | |
<DL> | |
<DD>Default constructor. Note that the default | |
block size is very small, for small lists. | |
<P> | |
</DL> | |
<HR> | |
<A NAME="ObjectVector(int)"><!-- --></A><H3> | |
ObjectVector</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.65"><B>ObjectVector</B></A>(int blocksize)</PRE> | |
<DL> | |
<DD>Construct a IntVector, using the given block size. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>blocksize</CODE> - Size of block to allocate</DL> | |
</DL> | |
<HR> | |
<A NAME="ObjectVector(int, int)"><!-- --></A><H3> | |
ObjectVector</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.78"><B>ObjectVector</B></A>(int blocksize, | |
int increaseSize)</PRE> | |
<DL> | |
<DD>Construct a IntVector, using the given block size. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>blocksize</CODE> - Size of block to allocate</DL> | |
</DL> | |
<HR> | |
<A NAME="ObjectVector(org.apache.xml.utils.ObjectVector)"><!-- --></A><H3> | |
ObjectVector</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.91"><B>ObjectVector</B></A>(<A HREF="../../../../org/apache/xml/utils/ObjectVector.html" title="class in org.apache.xml.utils">ObjectVector</A> v)</PRE> | |
<DL> | |
<DD>Copy constructor for ObjectVector | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>v</CODE> - Existing ObjectVector to copy</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="size()"><!-- --></A><H3> | |
size</H3> | |
<PRE> | |
public final int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.105"><B>size</B></A>()</PRE> | |
<DL> | |
<DD>Get the length of the list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>length of the list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSize(int)"><!-- --></A><H3> | |
setSize</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.115"><B>setSize</B></A>(int sz)</PRE> | |
<DL> | |
<DD>Get the length of the list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addElement(java.lang.Object)"><!-- --></A><H3> | |
addElement</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.126"><B>addElement</B></A>(java.lang.Object value)</PRE> | |
<DL> | |
<DD>Append an object onto the vector. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Object to add to the list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addElements(java.lang.Object, int)"><!-- --></A><H3> | |
addElements</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.150"><B>addElements</B></A>(java.lang.Object value, | |
int numberOfElements)</PRE> | |
<DL> | |
<DD>Append several Object values onto the vector. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Object to add to the list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addElements(int)"><!-- --></A><H3> | |
addElements</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.176"><B>addElements</B></A>(int numberOfElements)</PRE> | |
<DL> | |
<DD>Append several slots onto the vector, but do not set the values. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>numberOfElements</CODE> - number of slots to append</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="insertElementAt(java.lang.Object, int)"><!-- --></A><H3> | |
insertElementAt</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.203"><B>insertElementAt</B></A>(java.lang.Object value, | |
int at)</PRE> | |
<DL> | |
<DD>Inserts the specified object in this vector at the specified index. | |
Each component in this vector with an index greater or equal to | |
the specified index is shifted upward to have an index one greater | |
than the value it had previously. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Object to insert<DD><CODE>at</CODE> - Index of where to insert</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeAllElements()"><!-- --></A><H3> | |
removeAllElements</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.230"><B>removeAllElements</B></A>()</PRE> | |
<DL> | |
<DD>Remove all elements objects from the list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeElement(java.lang.Object)"><!-- --></A><H3> | |
removeElement</H3> | |
<PRE> | |
public final boolean <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.252"><B>removeElement</B></A>(java.lang.Object s)</PRE> | |
<DL> | |
<DD>Removes the first occurrence of the argument from this vector. | |
If the object is found in this vector, each component in the vector | |
with an index greater or equal to the object's index is shifted | |
downward to have an index one smaller than the value it had | |
previously. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>s</CODE> - Object to remove from array | |
<DT><B>Returns:</B><DD>True if the object was removed, false if it was not found</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeElementAt(int)"><!-- --></A><H3> | |
removeElementAt</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.281"><B>removeElementAt</B></A>(int i)</PRE> | |
<DL> | |
<DD>Deletes the component at the specified index. Each component in | |
this vector with an index greater or equal to the specified | |
index is shifted downward to have an index one smaller than | |
the value it had previously. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>i</CODE> - index of where to remove an object</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setElementAt(java.lang.Object, int)"><!-- --></A><H3> | |
setElementAt</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.302"><B>setElementAt</B></A>(java.lang.Object value, | |
int index)</PRE> | |
<DL> | |
<DD>Sets the component at the specified index of this vector to be the | |
specified object. The previous component at that position is discarded. | |
The index must be a value greater than or equal to 0 and less | |
than the current size of the vector. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - object to set<DD><CODE>index</CODE> - Index of where to set the object</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="elementAt(int)"><!-- --></A><H3> | |
elementAt</H3> | |
<PRE> | |
public final java.lang.Object <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.314"><B>elementAt</B></A>(int i)</PRE> | |
<DL> | |
<DD>Get the nth element. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>i</CODE> - index of object to get | |
<DT><B>Returns:</B><DD>object at given index</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="contains(java.lang.Object)"><!-- --></A><H3> | |
contains</H3> | |
<PRE> | |
public final boolean <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.326"><B>contains</B></A>(java.lang.Object s)</PRE> | |
<DL> | |
<DD>Tell if the table contains the given Object. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>s</CODE> - object to look for | |
<DT><B>Returns:</B><DD>true if the object is in the list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="indexOf(java.lang.Object, int)"><!-- --></A><H3> | |
indexOf</H3> | |
<PRE> | |
public final int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.349"><B>indexOf</B></A>(java.lang.Object elem, | |
int index)</PRE> | |
<DL> | |
<DD>Searches for the first occurence of the given argument, | |
beginning the search at index, and testing for equality | |
using the equals method. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - object to look for<DD><CODE>index</CODE> - Index of where to begin search | |
<DT><B>Returns:</B><DD>the index of the first occurrence of the object | |
argument in this vector at position index or later in the | |
vector; returns -1 if the object is not found.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="indexOf(java.lang.Object)"><!-- --></A><H3> | |
indexOf</H3> | |
<PRE> | |
public final int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.371"><B>indexOf</B></A>(java.lang.Object elem)</PRE> | |
<DL> | |
<DD>Searches for the first occurence of the given argument, | |
beginning the search at index, and testing for equality | |
using the equals method. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - object to look for | |
<DT><B>Returns:</B><DD>the index of the first occurrence of the object | |
argument in this vector at position index or later in the | |
vector; returns -1 if the object is not found.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lastIndexOf(java.lang.Object)"><!-- --></A><H3> | |
lastIndexOf</H3> | |
<PRE> | |
public final int <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.393"><B>lastIndexOf</B></A>(java.lang.Object elem)</PRE> | |
<DL> | |
<DD>Searches for the first occurence of the given argument, | |
beginning the search at index, and testing for equality | |
using the equals method. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - Object to look for | |
<DT><B>Returns:</B><DD>the index of the first occurrence of the object | |
argument in this vector at position index or later in the | |
vector; returns -1 if the object is not found.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setToSize(int)"><!-- --></A><H3> | |
setToSize</H3> | |
<PRE> | |
public final void <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.410"><B>setToSize</B></A>(int size)</PRE> | |
<DL> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="clone()"><!-- --></A><H3> | |
clone</H3> | |
<PRE> | |
public java.lang.Object <A HREF="../../../../src-html/org/apache/xml/utils/ObjectVector.html#line.426"><B>clone</B></A>() | |
throws java.lang.CloneNotSupportedException</PRE> | |
<DL> | |
<DD>Returns clone of current ObjectVector | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>clone of current ObjectVector | |
<DT><B>Throws:</B> | |
<DD><CODE>java.lang.CloneNotSupportedException</CODE></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> </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/ObjectVector.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/xml/utils/ObjectStack.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/PrefixForUriEnumerator.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/ObjectVector.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ObjectVector.html" target="_top"><B>NO FRAMES</B></A> | |
<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: NESTED | <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> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
</BODY> | |
</HTML> |