|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.QNm
public final class QNm
QName item.
| Field Summary | |
|---|---|
URI |
uri
URI. |
| Fields inherited from class org.basex.query.xquery.expr.Expr |
|---|
type |
| Constructor Summary | |
|---|---|
QNm(byte[] q)
Constructor. |
|
QNm(byte[] q,
URI u)
Constructor. |
|
QNm(byte[] n,
XQContext ctx)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
void |
check(XQContext ctx,
boolean ns)
Checks the validity of the qname. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
boolean |
eq(QNm n)
Compares the specified item. |
byte[] |
ln()
Returns the local name. |
boolean |
ns()
Checks if the name contains a namespace. |
byte[] |
pre()
Returns the prefix. |
byte[] |
str()
Returns an atomized string. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xquery.item.Item |
|---|
castErr, comp, dbl, eval, flt, i, info, iter, itr, serialize, serialize, size |
| Methods inherited from class org.basex.query.xquery.expr.Expr |
|---|
cls, d, e, n, node, s, u |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public URI uri
| Constructor Detail |
|---|
public QNm(byte[] q)
q - quick name
public QNm(byte[] q,
URI u)
q - quick nameu - uri
public QNm(byte[] n,
XQContext ctx)
throws XQException
n - namectx - xquery context
XQException - if name is invalid| Method Detail |
|---|
public boolean bool()
throws XQException
Item
bool in class ItemXQException - evaluation exception
public void check(XQContext ctx,
boolean ns)
throws XQException
ctx - xquery contextns - check namespace
XQException - if name is invalid
public int diff(Item it)
throws XQException
Item
diff in class Itemit - item to be compared.
XQException - evaluation exception
public boolean eq(Item it)
throws XQException
Item
eq in class Itemit - item to be compared.
XQException - evaluation exceptionpublic boolean eq(QNm n)
n - name to be compared
public byte[] ln()
public boolean ns()
public byte[] pre()
public byte[] str()
Expr
str in class Exprpublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||