Java Doc for NodeVector.java in  » XML » xalan » org » apache » xml » utils » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xml.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.utils.NodeVector

All known Subclasses:   org.apache.xpath.NodeSetDTM,
NodeVector
public class NodeVector implements Serializable,Cloneable(Code)
A very simple table that stores a list of Nodes.


Field Summary
protected  intm_firstFree
     Number of nodes in this NodeVector.
final static  longserialVersionUID
    

Constructor Summary
public  NodeVector()
     Default constructor.
public  NodeVector(int blocksize)
     Construct a NodeVector, using the given block size.

Method Summary
public  voidRemoveAllNoClear()
     Set the length to zero, but don't clear the array.
public  voidaddElement(int value)
     Append a Node onto the vector.
public  voidappendNodes(NodeVector nodes)
     Append the nodes to the list.
public  Objectclone()
     Get a cloned LocPathIterator.
public  booleancontains(int s)
     Tell if the table contains the given node.
public  intelementAt(int i)
     Get the nth element.
public  intindexOf(int elem, int index)
     Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
public  intindexOf(int elem)
     Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
public  voidinsertElementAt(int value, int at)
     Inserts the specified node in this vector at the specified index.
public  voidinsertInOrder(int value)
     Insert a node in order in the list.
final public  intpeepOrNull()
     Return the node at the top of the stack without popping the stack.
final public  intpeepTail()
     Return the node at the tail of the vector without popping Special purpose method for TransformerImpl, pushElemTemplateElement.
final public  intpeepTailSub1()
     Return the node one position from the tail without popping.
final public  intpop()
     Pop a node from the tail of the vector and return the result.
final public  intpopAndTop()
     Pop a node from the tail of the vector and return the top of the stack after the pop.
final public  voidpopPair()
     Pop a pair of nodes from the tail of the stack.
final public  voidpopQuick()
     Pop a node from the tail of the vector.
final public  voidpush(int value)
     Append a Node onto the vector.
final public  voidpushPair(int v1, int v2)
     Push a pair of nodes into the stack.
public  voidremoveAllElements()
     Inserts the specified node in this vector at the specified index.
public  booleanremoveElement(int s)
     Removes the first occurrence of the argument from this vector.
public  voidremoveElementAt(int i)
     Deletes the component at the specified index.
public  voidsetElementAt(int node, int index)
     Sets the component at the specified index of this vector to be the specified object.
final public  voidsetTail(int n)
     Set the tail of the stack to the given node.
final public  voidsetTailSub1(int n)
     Set the given node one position from the tail.
public  intsize()
     Get the length of the list.
public  voidsort(int a, int lo0, int hi0)
     Sort an array using a quicksort algorithm.
public  voidsort()
     Sort an array using a quicksort algorithm.

Field Detail
m_firstFree
protected int m_firstFree(Code)
Number of nodes in this NodeVector.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
NodeVector
public NodeVector()(Code)
Default constructor.



NodeVector
public NodeVector(int blocksize)(Code)
Construct a NodeVector, using the given block size.
Parameters:
  blocksize - Size of blocks to allocate




Method Detail
RemoveAllNoClear
public void RemoveAllNoClear()(Code)
Set the length to zero, but don't clear the array.



addElement
public void addElement(int value)(Code)
Append a Node onto the vector.
Parameters:
  value - Node to add to the vector



appendNodes
public void appendNodes(NodeVector nodes)(Code)
Append the nodes to the list.
Parameters:
  nodes - NodeVector to append to this list



clone
public Object clone() throws CloneNotSupportedException(Code)
Get a cloned LocPathIterator. A clone of this
throws:
  CloneNotSupportedException -



contains
public boolean contains(int s)(Code)
Tell if the table contains the given node.
Parameters:
  s - Node to look for True if the given node was found.



elementAt
public int elementAt(int i)(Code)
Get the nth element.
Parameters:
  i - Index of node to get Node at specified index



indexOf
public int indexOf(int elem, int index)(Code)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
Parameters:
  elem - Node to look for
Parameters:
  index - Index of where to start the search the index of the first occurrence of the objectargument in this vector at position index or later in thevector; returns -1 if the object is not found.



indexOf
public int indexOf(int elem)(Code)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method.
Parameters:
  elem - Node to look for the index of the first occurrence of the objectargument in this vector at position index or later in thevector; returns -1 if the object is not found.



insertElementAt
public void insertElementAt(int value, int at)(Code)
Inserts the specified node 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.
Parameters:
  value - Node to insert
Parameters:
  at - Position where to insert



insertInOrder
public void insertInOrder(int value)(Code)
Insert a node in order in the list.
Parameters:
  value - Node to insert



peepOrNull
final public int peepOrNull()(Code)
Return the node at the top of the stack without popping the stack. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical. Node at the top of the stack or null if stack is empty.



peepTail
final public int peepTail()(Code)
Return the node at the tail of the vector without popping Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical. Node at the tail of the vector



peepTailSub1
final public int peepTailSub1()(Code)
Return the node one position from the tail without popping. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical. Node one away from the tail



pop
final public int pop()(Code)
Pop a node from the tail of the vector and return the result. the node at the tail of the vector



popAndTop
final public int popAndTop()(Code)
Pop a node from the tail of the vector and return the top of the stack after the pop. The top of the stack after it's been popped



popPair
final public void popPair()(Code)
Pop a pair of nodes from the tail of the stack. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.



popQuick
final public void popQuick()(Code)
Pop a node from the tail of the vector.



push
final public void push(int value)(Code)
Append a Node onto the vector.
Parameters:
  value - Node to add to the vector



pushPair
final public void pushPair(int v1, int v2)(Code)
Push a pair of nodes into the stack. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
Parameters:
  v1 - First node to add to vector
Parameters:
  v2 - Second node to add to vector



removeAllElements
public void removeAllElements()(Code)
Inserts the specified node 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.



removeElement
public boolean removeElement(int s)(Code)
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.
Parameters:
  s - Node to remove from the list True if the node was successfully removed



removeElementAt
public void removeElementAt(int i)(Code)
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.
Parameters:
  i - Index of node to remove



setElementAt
public void setElementAt(int node, int index)(Code)
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.
Parameters:
  node - Node to set
Parameters:
  index - Index of where to set the node



setTail
final public void setTail(int n)(Code)
Set the tail of the stack to the given node. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
Parameters:
  n - Node to set at the tail of vector



setTailSub1
final public void setTailSub1(int n)(Code)
Set the given node one position from the tail. Special purpose method for TransformerImpl, pushElemTemplateElement. Performance critical.
Parameters:
  n - Node to set



size
public int size()(Code)
Get the length of the list. Number of nodes in this NodeVector



sort
public void sort(int a, int lo0, int hi0) throws Exception(Code)
Sort an array using a quicksort algorithm.
Parameters:
  a - The array to be sorted.
Parameters:
  lo0 - The low index.
Parameters:
  hi0 - The high index.
throws:
  Exception -



sort
public void sort() throws Exception(Code)
Sort an array using a quicksort algorithm.
throws:
  Exception -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.