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


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

All known Subclasses:   org.apache.xpath.objects.XNull,  org.apache.xpath.objects.XNodeSetForDOM,
XNodeSet
public class XNodeSet extends NodeSequence (Code)
This class represents an XPath nodeset object, and is capable of converting the nodeset to other types, such as a string.


Field Summary
final static  EqualComparatorS_EQ
    
final static  GreaterThanComparatorS_GT
    
final static  GreaterThanOrEqualComparatorS_GTE
    
final static  LessThanComparatorS_LT
    
final static  LessThanOrEqualComparatorS_LTE
    
final static  NotEqualComparatorS_NEQ
    
final static  longserialVersionUID
    

Constructor Summary
protected  XNodeSet()
     Default constructor for derived objects.
public  XNodeSet(DTMIterator val)
     Construct a XNodeSet object.
public  XNodeSet(XNodeSet val)
     Construct a XNodeSet object.
public  XNodeSet(DTMManager dtmMgr)
     Construct an empty XNodeSet object.
public  XNodeSet(int n, DTMManager dtmMgr)
     Construct a XNodeSet object for one node.

Method Summary
public  voidappendToFsb(org.apache.xml.utils.FastStringBuffer fsb)
     Cast result object to a string.
public  booleanbool()
     Cast result object to a boolean.
public  booleanboolWithSideEffects()
     Cast result object to a boolean, but allow side effects, such as the incrementing of an iterator.
public  booleancompare(XObject obj2, Comparator comparator)
     Tell if one object is less than the other.
public  voiddispatchCharactersEvents(org.xml.sax.ContentHandler ch)
     Directly call the characters method on the passed ContentHandler for the string-value.
public  booleanequals(XObject obj2)
     Tell if two objects are functionally equal.
public  XObjectgetFresh()
     Get a fresh copy of the object.
public  doublegetNumberFromNode(int n)
     Get numeric value of the string conversion from a single node.
public  XMLStringgetStringFromNode(int n)
     Get the string conversion from a single node.
public  intgetType()
     Tell that this is a CLASS_NODESET.
public  StringgetTypeString()
     Given a request type, return the equivalent string.
public  booleangreaterThan(XObject obj2)
     Tell if one object is less than the other.
public  booleangreaterThanOrEqual(XObject obj2)
     Tell if one object is less than the other.
public  DTMIteratoriter()
     Cast result object to a nodelist.
public  DTMIteratoriterRaw()
     Return the iterator without cloning, etc.
public  booleanlessThan(XObject obj2)
     Tell if one object is less than the other.
public  booleanlessThanOrEqual(XObject obj2)
     Tell if one object is less than or equal to the other.
public  NodeSetDTMmutableNodeset()
     Cast result object to a mutableNodeset.
public  NodeListnodelist()
     Cast result object to a nodelist.
public  NodeIteratornodeset()
     Cast result object to a nodelist.
public  booleannotEquals(XObject obj2)
     Tell if two objects are functionally not equal.
public  doublenum()
     Cast result object to a number.
public  doublenumWithSideEffects()
     Cast result object to a number, but allow side effects, such as the incrementing of an iterator.
public  Objectobject()
     Return a java object that's closest to the representation that should be handed to an extension.
public  voidrelease(DTMIterator iter)
    
public  Stringstr()
     Cast result object to a string.
public  XMLStringxstr()
     Cast result object to an XMLString. The document fragment node data or the empty string.

Field Detail
S_EQ
final static EqualComparator S_EQ(Code)
Equal comparator



S_GT
final static GreaterThanComparator S_GT(Code)
Greater than comparator



S_GTE
final static GreaterThanOrEqualComparator S_GTE(Code)
Greater than or equal comparator



S_LT
final static LessThanComparator S_LT(Code)
Less than comparator



S_LTE
final static LessThanOrEqualComparator S_LTE(Code)
Less than or equal comparator



S_NEQ
final static NotEqualComparator S_NEQ(Code)
Not equal comparator



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
XNodeSet
protected XNodeSet()(Code)
Default constructor for derived objects.



XNodeSet
public XNodeSet(DTMIterator val)(Code)
Construct a XNodeSet object.
Parameters:
  val - Value of the XNodeSet object



XNodeSet
public XNodeSet(XNodeSet val)(Code)
Construct a XNodeSet object.
Parameters:
  val - Value of the XNodeSet object



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



XNodeSet
public XNodeSet(int n, DTMManager dtmMgr)(Code)
Construct a XNodeSet object for one node.
Parameters:
  n - Node to add to the new XNodeSet object




Method Detail
appendToFsb
public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)(Code)
Cast result object to a string. The string this wraps or the empty string if null



bool
public boolean bool()(Code)
Cast result object to a boolean. True if there is a next node in the nodeset



boolWithSideEffects
public boolean boolWithSideEffects()(Code)
Cast result object to a boolean, but allow side effects, such as the incrementing of an iterator. True if there is a next node in the nodeset



compare
public boolean compare(XObject obj2, Comparator comparator) throws javax.xml.transform.TransformerException(Code)
Tell if one object is less than the other.
Parameters:
  obj2 - Object to compare this nodeset to
Parameters:
  comparator - Comparator to use See the comments below for each object type comparison
throws:
  javax.xml.transform.TransformerException -



dispatchCharactersEvents
public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code)
Directly call the characters method on the passed ContentHandler for the string-value. Multiple calls to the ContentHandler's characters methods may well occur for a single call to this method.
Parameters:
  ch - A non-null reference to a ContentHandler.
throws:
  org.xml.sax.SAXException -



equals
public boolean equals(XObject obj2)(Code)
Tell if two objects are functionally equal.
Parameters:
  obj2 - object to compare this nodeset to see this.compare(...)
throws:
  javax.xml.transform.TransformerException -



getFresh
public XObject getFresh()(Code)
Get a fresh copy of the object. For use with variables. A fresh nodelist.



getNumberFromNode
public double getNumberFromNode(int n)(Code)
Get numeric value of the string conversion from a single node.
Parameters:
  n - Node to convert numeric value of the string conversion from a single node.



getStringFromNode
public XMLString getStringFromNode(int n)(Code)
Get the string conversion from a single node.
Parameters:
  n - Node to convert the string conversion from a single node.



getType
public int getType()(Code)
Tell that this is a CLASS_NODESET. type CLASS_NODESET



getTypeString
public String getTypeString()(Code)
Given a request type, return the equivalent string. For diagnostic purposes. type string "#NODESET"



greaterThan
public boolean greaterThan(XObject obj2) throws javax.xml.transform.TransformerException(Code)
Tell if one object is less than the other.
Parameters:
  obj2 - object to compare this nodeset to see this.compare(...)
throws:
  javax.xml.transform.TransformerException -



greaterThanOrEqual
public boolean greaterThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException(Code)
Tell if one object is less than the other.
Parameters:
  obj2 - object to compare this nodeset to see this.compare(...)
throws:
  javax.xml.transform.TransformerException -



iter
public DTMIterator iter()(Code)
Cast result object to a nodelist. The nodeset as a nodelist



iterRaw
public DTMIterator iterRaw()(Code)
Return the iterator without cloning, etc.



lessThan
public boolean lessThan(XObject obj2) throws javax.xml.transform.TransformerException(Code)
Tell if one object is less than the other.
Parameters:
  obj2 - object to compare this nodeset to see this.compare(...)
throws:
  javax.xml.transform.TransformerException -



lessThanOrEqual
public boolean lessThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException(Code)
Tell if one object is less than or equal to the other.
Parameters:
  obj2 - object to compare this nodeset to see this.compare(...)
throws:
  javax.xml.transform.TransformerException -



mutableNodeset
public NodeSetDTM mutableNodeset()(Code)
Cast result object to a mutableNodeset. The nodeset as a mutableNodeset



nodelist
public NodeList nodelist() throws javax.xml.transform.TransformerException(Code)
Cast result object to a nodelist. a NodeList.
throws:
  javax.xml.transform.TransformerException -



nodeset
public NodeIterator nodeset() throws javax.xml.transform.TransformerException(Code)
Cast result object to a nodelist. a NodeIterator.
throws:
  javax.xml.transform.TransformerException -



notEquals
public boolean notEquals(XObject obj2) throws javax.xml.transform.TransformerException(Code)
Tell if two objects are functionally not equal.
Parameters:
  obj2 - object to compare this nodeset to see this.compare(...)
throws:
  javax.xml.transform.TransformerException -



num
public double num()(Code)
Cast result object to a number. numeric value of the string conversion from the next node in the NodeSetDTM, or NAN if no node was found



numWithSideEffects
public double numWithSideEffects()(Code)
Cast result object to a number, but allow side effects, such as the incrementing of an iterator. numeric value of the string conversion from the next node in the NodeSetDTM, or NAN if no node was found



object
public Object object()(Code)
Return a java object that's closest to the representation that should be handed to an extension. The object that this class wraps



release
public void release(DTMIterator iter)(Code)



str
public String str()(Code)
Cast result object to a string. the string conversion from the next node in the nodesetor "" if there is no next node



xstr
public XMLString xstr()(Code)
Cast result object to an XMLString. The document fragment node data or the empty string.



Fields inherited from org.apache.xpath.axes.NodeSequence
protected DTMManager m_dtmMgr(Code)(Java Doc)
protected DTMIterator m_iter(Code)(Java Doc)
protected int m_last(Code)(Java Doc)
protected int m_next(Code)(Java Doc)

Methods inherited from org.apache.xpath.axes.NodeSequence
protected void SetVector(NodeVector v)(Code)(Java Doc)
protected int addNodeInDocOrder(int node)(Code)(Java Doc)
public void allowDetachToRelease(boolean allowRelease)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public DTMIterator cloneWithReset() throws CloneNotSupportedException(Code)(Java Doc)
public void detach()(Code)(Java Doc)
public void fixupVariables(Vector vars, int globalsSize)(Code)(Java Doc)
public int getAnalysisBits()(Code)(Java Doc)
public int getAxis()(Code)(Java Doc)
final public DTMIterator getContainedIter()(Code)(Java Doc)
public int getCurrentNode()(Code)(Java Doc)
public int getCurrentPos()(Code)(Java Doc)
public DTM getDTM(int nodeHandle)(Code)(Java Doc)
public DTMManager getDTMManager()(Code)(Java Doc)
public boolean getExpandEntityReferences()(Code)(Java Doc)
public int getLength()(Code)(Java Doc)
public int getRoot()(Code)(Java Doc)
protected NodeVector getVector()(Code)(Java Doc)
public int getWhatToShow()(Code)(Java Doc)
public boolean hasCache()(Code)(Java Doc)
public boolean isDocOrdered()(Code)(Java Doc)
public boolean isFresh()(Code)(Java Doc)
public boolean isMutable()(Code)(Java Doc)
public int item(int index)(Code)(Java Doc)
public int nextNode()(Code)(Java Doc)
public int previousNode()(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void runTo(int index)(Code)(Java Doc)
public void setCurrentPos(int i)(Code)(Java Doc)
public void setItem(int node, int index)(Code)(Java Doc)
final public void setIter(DTMIterator iter)(Code)(Java Doc)
public void setRoot(int nodeHandle, Object environment)(Code)(Java Doc)
public void setShouldCacheNodes(boolean b)(Code)(Java Doc)

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)
final static long serialVersionUID(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.