| Package | Description |
|---|---|
| org.basex.build |
Classes for creating new database instances.
|
| org.basex.io.serial | |
| org.basex.query.expr |
XQuery expressions.
|
| org.basex.query.flwor | |
| org.basex.query.ft |
XQuery Full Text expressions.
|
| org.basex.query.func |
XQuery functions.
|
| org.basex.query.item |
XQuery data types.
|
| org.basex.query.item.map | |
| org.basex.query.iter |
XQuery iterators.
|
| org.basex.query.up.expr | |
| org.basex.query.up.primitives | |
| org.basex.query.util |
XQuery utility classes.
|
| org.basex.query.util.crypto | |
| org.basex.query.util.format |
XQuery formatter utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
static Item |
Parser.item(IO in,
Prop prop,
java.lang.String type)
Returns an XQuery item for the specified content type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Serializer.atomic(Item item)
Serializes an atomic value.
|
protected abstract void |
Serializer.finishAtomic(Item i)
Serializes an item.
|
void |
DOTSerializer.finishAtomic(Item it) |
void |
RawSerializer.finishAtomic(Item it) |
void |
SAXSerializer.finishAtomic(Item b) |
void |
OutputSerializer.finishAtomic(Item it) |
void |
BuilderSerializer.finishAtomic(Item b) |
void |
JSONSerializer.finishAtomic(Item value) |
void |
JsonMLSerializer.finishAtomic(Item value) |
| Modifier and Type | Method and Description |
|---|---|
Item |
ParseExpr.checkItem(Expr e,
QueryContext ctx)
Checks if the specified expression yields a non-empty item.
|
Item |
ParseExpr.checkNoEmpty(Item it)
Checks if the specified item is no empty sequence.
|
Item |
ParseExpr.checkType(Item it,
Type t)
Checks if the specified expression is an empty sequence; if yes, throws
an exception.
|
abstract Item |
Expr.ebv(QueryContext ctx,
InputInfo ii)
Checks if the iterator can be dissolved into an effective boolean value.
|
Item |
ParseExpr.ebv(QueryContext ctx,
InputInfo ii) |
abstract Item |
Calc.ev(InputInfo ii,
Item a,
Item b)
Performs the calculation.
|
Item |
LitMap.item(QueryContext ctx,
InputInfo ii) |
Item |
If.item(QueryContext ctx,
InputInfo ii) |
Item |
Or.item(QueryContext ctx,
InputInfo ii) |
abstract Item |
Expr.item(QueryContext ctx,
InputInfo ii)
Evaluates the expression and returns the resulting item or
a
null reference, if the expression yields an empty sequence. |
Item |
Unary.item(QueryContext ctx,
InputInfo ii) |
Item |
Arith.item(QueryContext ctx,
InputInfo ii) |
Item |
Context.item(QueryContext ctx,
InputInfo ii) |
Item |
VarRef.item(QueryContext ctx,
InputInfo ii) |
Item |
Cast.item(QueryContext ctx,
InputInfo ii) |
Item |
Switch.item(QueryContext ctx,
InputInfo ii) |
Item |
ParseExpr.item(QueryContext ctx,
InputInfo ii) |
abstract Item |
Expr.test(QueryContext ctx,
InputInfo ii)
Performs a predicate test and returns the item if test was successful.
|
Item |
ParseExpr.test(QueryContext ctx,
InputInfo ii) |
| Modifier and Type | Method and Description |
|---|---|
DBNode |
ParseExpr.checkDBNode(Item it)
Checks if the specified expression is a database node.
|
byte[] |
ParseExpr.checkEStr(Item it)
Checks if the specified item is a string or an empty sequence.
|
long |
ParseExpr.checkItr(Item it)
Checks if the specified item is a number.
|
Map |
ParseExpr.checkMap(Item it)
Assures that the given (non-
null) item is a map. |
ANode |
ParseExpr.checkNode(Item it)
Checks if the specified expression is a node.
|
Item |
ParseExpr.checkNoEmpty(Item it)
Checks if the specified item is no empty sequence.
|
Item |
ParseExpr.checkType(Item it,
Type t)
Checks if the specified expression is an empty sequence; if yes, throws
an exception.
|
abstract Item |
Calc.ev(InputInfo ii,
Item a,
Item b)
Performs the calculation.
|
abstract boolean |
CmpV.OpV.eval(InputInfo ii,
Item a,
Item b)
Evaluates the expression.
|
boolean |
Preds.preds(Item it,
QueryContext ctx)
Checks if the predicates are successful for the specified item.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
Group.Spec.item(QueryContext ctx,
InputInfo ii) |
| Constructor and Description |
|---|
FTWords(InputInfo ii,
Data d,
Item str,
QueryContext ctx)
Constructor for index-based evaluation.
|
| Modifier and Type | Method and Description |
|---|---|
static Item |
StandardFunc.atom(Item it,
InputInfo ii)
Atomizes the specified item.
|
static Item |
FNNum.round(Item it,
double d,
int prec,
boolean h2e,
InputInfo ii)
Returns a rounded item.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ANode
Abstract node type.
|
class |
Atm
Untyped atomic item.
|
class |
B64
Base64 item.
|
class |
B64Stream
Streamable base64 item.
|
class |
Bin
Binary item.
|
class |
Bln
Boolean item.
|
class |
Dat
Date item.
|
class |
Date
Date container.
|
class |
Dbl
Double item.
|
class |
DBNode
Disk-based Node item.
|
class |
Dec
Decimal item.
|
class |
DSim
Simple date item.
|
class |
DTd
DayTime Duration item.
|
class |
Dtm
DateTime item.
|
class |
Dur
Duration item.
|
class |
FAttr
Attribute node fragment.
|
class |
FComm
Comment node fragment.
|
class |
FDoc
Document node fragment.
|
class |
FElem
Element node fragment.
|
class |
FItem
Abstract super class for function items.
|
class |
Flt
Float item.
|
class |
FNames
Namespace node.
|
class |
FNode
Node type.
|
class |
FPI
PI node fragment.
|
class |
FTNode
Disk-based full-text Node item.
|
class |
FTxt
Text node fragment.
|
class |
FuncItem
Function item.
|
class |
Hex
HexBinary item.
|
class |
Int
Integer item.
|
class |
Jav
String item.
|
class |
QNm
QName item.
|
class |
Str
String item.
|
class |
StrStream
Streamable string item.
|
class |
Tim
Time item.
|
class |
Uri
URI item.
|
class |
YMd
YearMonth Duration item.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
SeqType.cast(Item it,
boolean cast,
QueryContext ctx,
InputInfo ii,
Expr e)
Tries to cast the given item to this sequence type.
|
Item |
NodeType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
Item |
Type.cast(Item it,
QueryContext ctx,
InputInfo ii)
Casts the specified item to the XQuery data type.
|
Item |
AtomType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
Item |
NodeType.cast(java.lang.Object o,
InputInfo ii) |
Item |
Type.cast(java.lang.Object o,
InputInfo ii)
Casts the specified Java object to the XQuery data type.
|
Item |
AtomType.cast(java.lang.Object o,
InputInfo ii) |
Item |
FuncType.cast(java.lang.Object o,
InputInfo ii) |
Item |
Empty.ebv(QueryContext ctx,
InputInfo ii) |
Item |
IntSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
ItemSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
RangeSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
DBNodeSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
Item.ebv(QueryContext ctx,
InputInfo ii) |
Item |
FuncItem.invItem(QueryContext ctx,
InputInfo ii,
Value... args) |
Item |
FItem.invItem(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Item |
Empty.item(QueryContext ctx,
InputInfo ii) |
Item |
Seq.item(QueryContext ctx,
InputInfo ii) |
Item |
Item.item(QueryContext ctx,
InputInfo ii) |
Item |
Empty.itemAt(long pos) |
Item |
IntSeq.itemAt(long pos) |
Item |
ItemSeq.itemAt(long pos) |
Item |
RangeSeq.itemAt(long pos) |
abstract Item |
Value.itemAt(long pos)
Gets the item at the given position in the value.
|
Item |
Item.itemAt(long pos) |
Item |
Empty.test(QueryContext ctx,
InputInfo ii) |
Item |
Seq.test(QueryContext ctx,
InputInfo ii) |
Item |
Item.test(QueryContext ctx,
InputInfo ii) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<Item> |
Value.iterator() |
| Modifier and Type | Method and Description |
|---|---|
Item |
SeqType.cast(Item it,
boolean cast,
QueryContext ctx,
InputInfo ii,
Expr e)
Tries to cast the given item to this sequence type.
|
Item |
NodeType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
Item |
Type.cast(Item it,
QueryContext ctx,
InputInfo ii)
Casts the specified item to the XQuery data type.
|
Item |
AtomType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
FItem |
MapType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
FItem |
FuncType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
boolean |
Item.comparable(Item it)
Checks if the items can be compared.
|
int |
Dbl.diff(InputInfo ii,
Item it) |
int |
StrStream.diff(InputInfo ii,
Item it) |
int |
Dec.diff(InputInfo ii,
Item it) |
int |
DSim.diff(InputInfo ii,
Item it) |
int |
Bln.diff(InputInfo ii,
Item it) |
int |
QNm.diff(InputInfo ii,
Item it) |
int |
Flt.diff(InputInfo ii,
Item it) |
int |
ANode.diff(InputInfo ii,
Item it) |
int |
YMd.diff(InputInfo ii,
Item it) |
int |
Jav.diff(InputInfo ii,
Item it) |
int |
Str.diff(InputInfo ii,
Item it) |
int |
Dur.diff(InputInfo ii,
Item it) |
int |
DTd.diff(InputInfo ii,
Item it) |
int |
Int.diff(InputInfo ii,
Item it) |
int |
Atm.diff(InputInfo ii,
Item it) |
int |
Date.diff(InputInfo ii,
Item it) |
int |
Item.diff(InputInfo ii,
Item it)
Returns the difference between the current and the specified item.
|
boolean |
Dbl.eq(InputInfo ii,
Item it) |
boolean |
Hex.eq(InputInfo ii,
Item it) |
boolean |
StrStream.eq(InputInfo ii,
Item it) |
boolean |
Dec.eq(InputInfo ii,
Item it) |
boolean |
Bln.eq(InputInfo ii,
Item it) |
boolean |
QNm.eq(InputInfo ii,
Item it) |
boolean |
B64.eq(InputInfo ii,
Item it) |
boolean |
Flt.eq(InputInfo ii,
Item it) |
boolean |
ANode.eq(InputInfo ii,
Item it) |
boolean |
Jav.eq(InputInfo ii,
Item it) |
boolean |
Str.eq(InputInfo ii,
Item it) |
boolean |
Dur.eq(InputInfo ii,
Item it) |
boolean |
Int.eq(InputInfo ii,
Item it) |
boolean |
FItem.eq(InputInfo ii,
Item it) |
boolean |
Atm.eq(InputInfo ii,
Item it) |
boolean |
B64Stream.eq(InputInfo ii,
Item it) |
boolean |
Date.eq(InputInfo ii,
Item it) |
abstract boolean |
Item.eq(InputInfo ii,
Item it)
Checks the items for equality.
|
boolean |
Item.equiv(InputInfo ii,
Item it)
Checks the items for equivalence.
|
static Value |
Seq.get(Item[] v,
int s)
Returns a value representation of the specified items.
|
int |
Empty.writeTo(Item[] arr,
int start) |
int |
IntSeq.writeTo(Item[] arr,
int start) |
int |
ItemSeq.writeTo(Item[] arr,
int start) |
int |
RangeSeq.writeTo(Item[] arr,
int pos) |
int |
DBNodeSeq.writeTo(Item[] arr,
int start) |
abstract int |
Value.writeTo(Item[] arr,
int start)
Writes this value's items out to the given array.
|
int |
Item.writeTo(Item[] arr,
int start) |
| Modifier and Type | Class and Description |
|---|---|
class |
Map
The map item.
|
| Modifier and Type | Method and Description |
|---|---|
Bln |
Map.contains(Item k,
InputInfo ii)
Checks if the given key exists in the map.
|
Map |
Map.delete(Item key,
InputInfo ii)
Deletes a key from this map.
|
Value |
Map.get(Item key,
InputInfo ii)
Gets the value from this map.
|
Map |
Map.insert(Item k,
Value v,
InputInfo ii)
Inserts the given value into this map.
|
| Modifier and Type | Field and Description |
|---|---|
Item[] |
ItemCache.item
Item container.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
Iter.get(long i)
Returns the specified item, or an arbitrary item if the index is invalid.
|
Item |
ItemCache.get(long i) |
abstract Item |
ValueIter.get(long i) |
abstract Item |
Iter.next()
Returns the next item or
null if no other items are found. |
Item |
ItemCache.next() |
abstract Item |
ValueIter.next() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<Item> |
ValueIter.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
ItemCache.add(Item it)
Adds a single item.
|
void |
ItemCache.set(Item i,
int p)
Sets an item to the specified position.
|
| Constructor and Description |
|---|
ItemCache(Item[] it,
int s)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
Replace.item(QueryContext ctx,
InputInfo ii) |
Item |
Insert.item(QueryContext ctx,
InputInfo ii) |
Item |
Delete.item(QueryContext ctx,
InputInfo ii) |
Item |
Rename.item(QueryContext ctx,
InputInfo ii) |
| Constructor and Description |
|---|
DBAdd(Data d,
InputInfo i,
Item it,
java.lang.String p,
Context c)
Constructor.
|
DBStore(Data d,
byte[] path,
Item it,
InputInfo info)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
Var.item(QueryContext ctx,
InputInfo ii) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<Item> |
ItemSet.iterator() |
| Modifier and Type | Method and Description |
|---|---|
static QueryException |
Err.diff(InputInfo ii,
Item it1,
Item it2)
Throws a comparison exception.
|
boolean |
ItemSet.index(InputInfo ii,
Item i)
Indexes the specified item.
|
static QueryException |
Err.number(ParseExpr e,
Item it)
Throws a number exception.
|
static QueryException |
Err.type(ParseExpr e,
Type t,
Item it)
Throws a type exception.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
DigitalSignature.generateSignature(ANode node,
byte[] c,
byte[] d,
byte[] sig,
byte[] ns,
byte[] t,
byte[] expr,
ANode ce,
InputInfo ii)
Generates a signature.
|
Item |
Encryption.hmac(byte[] msg,
byte[] k,
byte[] a,
byte[] enc)
Creates a message authentication code (MAC) for the given input.
|
Item |
DigitalSignature.validateSignature(ANode node)
Validates a signature.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
DecFormatter.format(InputInfo ii,
Item number,
java.lang.String picture)
Returns a formatted number.
|