Java Doc for NodeSequence.java in  » XML » xalan » org » apache » xpath » axes » 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.xpath.axes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.xpath.objects.XObject
   org.apache.xpath.axes.NodeSequence

All known Subclasses:   org.apache.xpath.objects.XNodeSet,
NodeSequence
public class NodeSequence extends XObject implements DTMIterator,Cloneable,PathComponent(Code)
This class is the dynamic wrapper for a Xalan DTMIterator instance, and provides random access capabilities.


Field Summary
protected  DTMManagerm_dtmMgr
     The DTMManager to use if we're using a NodeVector only.
protected  DTMIteratorm_iter
     The functional iterator that fetches nodes.
protected  intm_last
     The index of the last node in the iteration.
protected  intm_next
     The index of the next node to be fetched.
final static  longserialVersionUID
    

Constructor Summary
public  NodeSequence(DTMIterator iter, int context, XPathContext xctxt, boolean shouldCacheNodes)
     Create a new NodeSequence from a (already cloned) iterator.
public  NodeSequence(Object nodeVector)
     Create a new NodeSequence from a (already cloned) iterator.
public  NodeSequence(DTMManager dtmMgr)
     Construct an empty XNodeSet object.
public  NodeSequence()
     Create a new NodeSequence in an invalid (null) state.

Method Summary
protected  voidSetVector(NodeVector v)
     Set the vector where nodes will be stored.
protected  intaddNodeInDocOrder(int node)
     Add the node into a vector of nodes where it should occur in document order.
Parameters:
  node - The node to be added.
public  voidallowDetachToRelease(boolean allowRelease)
     Calling this with a value of false will cause the nodeset to be cached.
public  Objectclone()
     Get a clone of this iterator, but don't reset the iteration in the process, so that it may be used from the current position.
public  DTMIteratorcloneWithReset()
     Note: Not a deep clone.
public  voiddetach()
    
public  voidfixupVariables(Vector vars, int globalsSize)
    
public  intgetAnalysisBits()
    
public  intgetAxis()
    
final public  DTMIteratorgetContainedIter()
     Get the functional iterator that fetches nodes.
public  intgetCurrentNode()
    
public  intgetCurrentPos()
    
public  DTMgetDTM(int nodeHandle)
    
public  DTMManagergetDTMManager()
    
public  booleangetExpandEntityReferences()
    
public  intgetLength()
    
public  intgetRoot()
    
protected  NodeVectorgetVector()
     If this iterator needs to cache nodes that are fetched, they are stored in the Vector in the generic object.
public  intgetWhatToShow()
    
public  booleanhasCache()
     If this iterator needs to cache nodes that are fetched, they are stored here.
public  booleanisDocOrdered()
    
public  booleanisFresh()
    
public  booleanisMutable()
    
public  intitem(int index)
    
public  intnextNode()
    
public  intpreviousNode()
    
public  voidreset()
    
public  voidrunTo(int index)
    
public  voidsetCurrentPos(int i)
    
public  voidsetItem(int node, int index)
    
final public  voidsetIter(DTMIterator iter)
     Set the functional iterator that fetches nodes.
public  voidsetRoot(int nodeHandle, Object environment)
    
public  voidsetShouldCacheNodes(boolean b)
    

Field Detail
m_dtmMgr
protected DTMManager m_dtmMgr(Code)
The DTMManager to use if we're using a NodeVector only. We may well want to do away with this, and store it in the NodeVector.



m_iter
protected DTMIterator m_iter(Code)
The functional iterator that fetches nodes.



m_last
protected int m_last(Code)
The index of the last node in the iteration.



m_next
protected int m_next(Code)
The index of the next node to be fetched. Useful if this is a cached iterator, and is being used as random access NodeList.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
NodeSequence
public NodeSequence(DTMIterator iter, int context, XPathContext xctxt, boolean shouldCacheNodes)(Code)
Create a new NodeSequence from a (already cloned) iterator.
Parameters:
  iter - Cloned (not static) DTMIterator.
Parameters:
  context - The initial context node.
Parameters:
  xctxt - The execution context.
Parameters:
  shouldCacheNodes - True if this sequence can random access.



NodeSequence
public NodeSequence(Object nodeVector)(Code)
Create a new NodeSequence from a (already cloned) iterator.
Parameters:
  nodeVector -



NodeSequence
public NodeSequence(DTMManager dtmMgr)(Code)
Construct an empty XNodeSet object. This is used to create a mutable nodeset to which random nodes may be added.



NodeSequence
public NodeSequence()(Code)
Create a new NodeSequence in an invalid (null) state.




Method Detail
SetVector
protected void SetVector(NodeVector v)(Code)
Set the vector where nodes will be stored.



addNodeInDocOrder
protected int addNodeInDocOrder(int node)(Code)
Add the node into a vector of nodes where it should occur in document order.
Parameters:
  node - The node to be added. insertIndex.
throws:
  RuntimeException - thrown if this NodeSetDTM is not of a mutable type.



allowDetachToRelease
public void allowDetachToRelease(boolean allowRelease)(Code)
Calling this with a value of false will cause the nodeset to be cached.
See Also:   DTMIterator.allowDetachToRelease(boolean)



clone
public Object clone() throws CloneNotSupportedException(Code)
Get a clone of this iterator, but don't reset the iteration in the process, so that it may be used from the current position. Note: Not a deep clone. A clone of this object.
throws:
  CloneNotSupportedException -



cloneWithReset
public DTMIterator cloneWithReset() throws CloneNotSupportedException(Code)
Note: Not a deep clone.
See Also:   DTMIterator.cloneWithReset



detach
public void detach()(Code)

See Also:   DTMIterator.detach



fixupVariables
public void fixupVariables(Vector vars, int globalsSize)(Code)

See Also:   org.apache.xpath.Expression.fixupVariables(Vectorint)



getAnalysisBits
public int getAnalysisBits()(Code)

See Also:   PathComponent.getAnalysisBits



getAxis
public int getAxis()(Code)

See Also:   DTMIterator.getAxis



getContainedIter
final public DTMIterator getContainedIter()(Code)
Get the functional iterator that fetches nodes. The contained iterator.



getCurrentNode
public int getCurrentNode()(Code)

See Also:   DTMIterator.getCurrentNode



getCurrentPos
public int getCurrentPos()(Code)

See Also:   DTMIterator.getCurrentPos



getDTM
public DTM getDTM(int nodeHandle)(Code)

See Also:   DTMIterator.getDTM(int)



getDTMManager
public DTMManager getDTMManager()(Code)

See Also:   DTMIterator.getDTMManager



getExpandEntityReferences
public boolean getExpandEntityReferences()(Code)

See Also:   DTMIterator.getExpandEntityReferences



getLength
public int getLength()(Code)

See Also:   DTMIterator.getLength



getRoot
public int getRoot()(Code)

See Also:   DTMIterator.getRoot



getVector
protected NodeVector getVector()(Code)
If this iterator needs to cache nodes that are fetched, they are stored in the Vector in the generic object.



getWhatToShow
public int getWhatToShow()(Code)

See Also:   DTMIterator.getWhatToShow



hasCache
public boolean hasCache()(Code)
If this iterator needs to cache nodes that are fetched, they are stored here.



isDocOrdered
public boolean isDocOrdered()(Code)

See Also:   DTMIterator.isDocOrdered



isFresh
public boolean isFresh()(Code)

See Also:   DTMIterator.isFresh



isMutable
public boolean isMutable()(Code)

See Also:   DTMIterator.isMutable



item
public int item(int index)(Code)

See Also:   DTMIterator.item(int)



nextNode
public int nextNode()(Code)

See Also:   DTMIterator.nextNode



previousNode
public int previousNode()(Code)

See Also:   DTMIterator.previousNode



reset
public void reset()(Code)

See Also:   DTMIterator.reset



runTo
public void runTo(int index)(Code)

See Also:   DTMIterator.runTo(int)



setCurrentPos
public void setCurrentPos(int i)(Code)

See Also:   DTMIterator.setCurrentPos(int)



setItem
public void setItem(int node, int index)(Code)

See Also:   DTMIterator.setItem(intint)



setIter
final public void setIter(DTMIterator iter)(Code)
Set the functional iterator that fetches nodes.
Parameters:
  iter - The iterator that is to be contained.



setRoot
public void setRoot(int nodeHandle, Object environment)(Code)

See Also:   DTMIterator.setRoot(intObject)



setShouldCacheNodes
public void setShouldCacheNodes(boolean b)(Code)

See Also:   DTMIterator.setShouldCacheNodes(boolean)



Fields inherited from org.apache.xpath.objects.XObject
final public static int CLASS_BOOLEAN(Code)(Java Doc)
final public static int CLASS_NODESET(Code)(Java Doc)
final public static int CLASS_NULL(Code)(Java Doc)
final public static int CLASS_NUMBER(Code)(Java Doc)
final public static int CLASS_RTREEFRAG(Code)(Java Doc)
final public static int CLASS_STRING(Code)(Java Doc)
final public static int CLASS_UNKNOWN(Code)(Java Doc)
final public static int CLASS_UNRESOLVEDVARIABLE(Code)(Java Doc)
protected Object m_obj(Code)(Java Doc)

Methods inherited from org.apache.xpath.objects.XObject
public void allowDetachToRelease(boolean allowRelease)(Code)(Java Doc)
public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)(Code)(Java Doc)
public boolean bool() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean boolWithSideEffects() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)(Code)(Java Doc)
public Object castToType(int t, XPathContext support) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public static XObject create(Object val)(Code)(Java Doc)
public static XObject create(Object val, XPathContext xctxt)(Code)(Java Doc)
public boolean deepEquals(Expression expr)(Code)(Java Doc)
public void destruct()(Code)(Java Doc)
public void detach()(Code)(Java Doc)
public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code)(Java Doc)
public boolean equals(XObject obj2)(Code)(Java Doc)
protected void error(String msg) throws javax.xml.transform.TransformerException(Code)(Java Doc)
protected void error(String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)(Java Doc)
public XObject getFresh()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public String getTypeString()(Code)(Java Doc)
public boolean greaterThan(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean greaterThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public DTMIterator iter() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean lessThan(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean lessThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public NodeSetDTM mutableNodeset() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public NodeList nodelist() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public NodeIterator nodeset() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean notEquals(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public double num() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public double numWithSideEffects() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public Object object()(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public int rtf(XPathContext support)(Code)(Java Doc)
public int rtf()(Code)(Java Doc)
public DocumentFragment rtree(XPathContext support)(Code)(Java Doc)
public DocumentFragment rtree()(Code)(Java Doc)
public String str()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public XMLString xstr()(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.