public class XPathNodeset extends Object
| Modifier and Type | Field and Description |
|---|---|
protected EvaluationContext |
ec |
protected DataInstance |
instance |
| Modifier | Constructor and Description |
|---|---|
protected |
XPathNodeset(DataInstance instance,
EvaluationContext ec)
for lazy evaluation
|
|
XPathNodeset(List<TreeReference> nodes,
DataInstance instance,
EvaluationContext ec)
Construct an XPath nodeset.
|
| Modifier and Type | Method and Description |
|---|---|
static XPathNodeset |
ConstructInvalidPathNodeset(String pathEvaluated,
String originalPath) |
protected XPathTypeMismatchException |
getInvalidNodesetException() |
int |
getNonEmptySize() |
TreeReference |
getRefAt(int i) |
List<TreeReference> |
getReferences() |
Object |
getValAt(int i) |
protected String |
nodeContents() |
protected void |
setReferences(List<TreeReference> nodes) |
static XPathNodeset |
shuffle(XPathNodeset input)
Builds and returns a copy of a XPathNodeset with nodes in a randomized order.
|
static XPathNodeset |
shuffle(XPathNodeset input,
long seed)
Builds and returns a copy of a XPathNodeset with nodes in a randomized order.
|
int |
size() |
Object[] |
toArgList() |
Object |
unpack() |
protected DataInstance instance
protected EvaluationContext ec
protected XPathNodeset(DataInstance instance, EvaluationContext ec)
instance - ec - public XPathNodeset(List<TreeReference> nodes, DataInstance instance, EvaluationContext ec)
nodes - instance - ec - public static XPathNodeset ConstructInvalidPathNodeset(String pathEvaluated, String originalPath)
public static XPathNodeset shuffle(XPathNodeset input)
public static XPathNodeset shuffle(XPathNodeset input, long seed)
seed - the seed used when building a Random object to get reproducible results. If null, no seed is usedprotected void setReferences(List<TreeReference> nodes)
public List<TreeReference> getReferences()
public Object unpack()
public Object[] toArgList()
public int size()
public int getNonEmptySize()
public TreeReference getRefAt(int i)
public Object getValAt(int i)
protected XPathTypeMismatchException getInvalidNodesetException()
protected String nodeContents()
Copyright © 2021. All rights reserved.