public class XNodeSet extends NodeSequence
m_dtmMgr, m_iter, m_last, m_nextCLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, m_objFILTER_ACCEPT, FILTER_SKIP| Constructor and Description |
|---|
XNodeSet(DTMIterator val)
Construct a XNodeSet object.
|
XNodeSet(DTMManager dtmMgr)
Construct an empty XNodeSet object.
|
XNodeSet(int n,
DTMManager dtmMgr)
Construct a XNodeSet object for one node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bool()
Cast result object to a boolean.
|
boolean |
boolWithSideEffects()
Cast result object to a boolean, but allow side effects, such as the incrementing of an
iterator.
|
boolean |
compare(XObject obj2,
net.sourceforge.htmlunit.xpath.objects.Comparator comparator)
Tell if one object is less than the other.
|
boolean |
equals(XObject obj2)
Tell if two objects are functionally equal.
|
double |
getNumberFromNode(int n)
Get numeric value of the string conversion from a single node.
|
XString |
getStringFromNode(int n)
Get the string conversion from a single node.
|
int |
getType()
Tell what kind of class this is.
|
String |
getTypeString()
Given a request type, return the equivalent string.
|
boolean |
greaterThan(XObject obj2)
Tell if one object is greater than the other.
|
boolean |
greaterThanOrEqual(XObject obj2)
Tell if one object is greater than or equal to the other.
|
DTMIterator |
iter()
Cast result object to a nodelist.
|
DTMIterator |
iterRaw()
Return the iterator without cloning, etc.
|
boolean |
lessThan(XObject obj2)
Tell if one object is less than the other.
|
boolean |
lessThanOrEqual(XObject obj2)
Tell if one object is less than or equal to the other.
|
NodeSetDTM |
mutableNodeset()
Cast result object to a nodelist.
|
NodeList |
nodelist()
Cast result object to a nodelist.
|
org.w3c.dom.traversal.NodeIterator |
nodeset()
Cast result object to a nodelist.
|
boolean |
notEquals(XObject obj2)
Tell if two objects are functionally not equal.
|
double |
num()
Cast result object to a number.
|
double |
numWithSideEffects()
Cast result object to a number, but allow side effects, such as the incrementing of an
iterator.
|
Object |
object()
Return a java object that's closest to the representation that should be handed to an
extension.
|
String |
str()
Cast result object to a string.
|
XString |
xstr()
Cast result object to a string.
|
addNodeInDocOrder, allowDetachToRelease, clone, cloneWithReset, detach, getAnalysisBits, getAxis, getCurrentNode, getCurrentPos, getDTM, getDTMManager, getExpandEntityReferences, getIteratorCache, getLength, getRoot, getVector, getWhatToShow, hasCache, isDocOrdered, isFresh, item, nextNode, previousNode, reset, runTo, setCurrentPos, setIter, setObject, setRoot, setShouldCacheNodes, SetVectorcallVisitors, deepEquals, error, error, execute, toStringasIterator, asNode, assertion, bool, canTraverseOutsideSubtree, error, execute, execute, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, numpublic XNodeSet(DTMIterator val)
val - Value of the XNodeSet objectpublic XNodeSet(DTMManager dtmMgr)
public XNodeSet(int n,
DTMManager dtmMgr)
n - Node to add to the new XNodeSet objectpublic int getType()
public String getTypeString()
getTypeString in class XObjectpublic double getNumberFromNode(int n)
n - Node to convertpublic double num()
public double numWithSideEffects()
numWithSideEffects in class XObjectpublic boolean bool()
public boolean boolWithSideEffects()
boolWithSideEffects in class XObjectpublic XString getStringFromNode(int n)
n - Node to convertpublic XString xstr()
public String str()
public Object object()
public org.w3c.dom.traversal.NodeIterator nodeset() throws TransformerException
nodeset in class XObjectTransformerException - in case of error in case of errorpublic NodeList nodelist() throws TransformerException
nodelist in class XObjectTransformerException - in case of error in case of errorpublic DTMIterator iterRaw()
public DTMIterator iter()
public NodeSetDTM mutableNodeset()
mutableNodeset in class XObjectpublic boolean compare(XObject obj2, net.sourceforge.htmlunit.xpath.objects.Comparator comparator) throws TransformerException
obj2 - Object to compare this nodeset tocomparator - Comparator to useTransformerException - in case of errorpublic boolean lessThan(XObject obj2) throws TransformerException
lessThan in class XObjectobj2 - Object to compare this toTransformerException - in case of error in case of errorpublic boolean lessThanOrEqual(XObject obj2) throws TransformerException
lessThanOrEqual in class XObjectobj2 - Object to compare this toTransformerException - in case of errorpublic boolean greaterThan(XObject obj2) throws TransformerException
greaterThan in class XObjectobj2 - Object to compare this toTransformerException - in case of errorpublic boolean greaterThanOrEqual(XObject obj2) throws TransformerException
greaterThanOrEqual in class XObjectobj2 - Object to compare this toTransformerException - in case of errorpublic boolean equals(XObject obj2)
public boolean notEquals(XObject obj2) throws TransformerException
notEquals in class XObjectobj2 - Object to compare this toTransformerException - in case of errorCopyright © 2022. All rights reserved.