|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.item.Item
org.basex.query.item.QNm
public final class QNm
QName item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
|---|
Expr.Use |
| Field Summary | |
|---|---|
Uri |
uri
URI. |
| Fields inherited from class org.basex.query.item.Item |
|---|
score, type |
| Constructor Summary | |
|---|---|
QNm()
Empty constructor. |
|
QNm(byte[] n)
Constructor. |
|
QNm(byte[] n,
QueryContext ctx)
Constructor. |
|
QNm(byte[] n,
Uri u)
Constructor. |
|
QNm(QName qn)
Convenience method for converting a Java QName. |
|
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
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. |
boolean |
equals(Object o)
|
int |
hashCode()
|
QName |
java()
Returns a Java object. |
byte[] |
ln()
Returns the local name. |
boolean |
ns()
Checks if the name contains a namespace. |
byte[] |
pref()
Returns the prefix. |
byte[] |
str()
Returns an atomized string. |
String |
toString()
|
| Methods inherited from class org.basex.query.item.Item |
|---|
atomic, comp, d, dbl, dec, duplicates, ebv, flt, i, iter, iter, itr, n, name, node, plan, removable, returned, s, score, score, serialize, size, test, u, uses |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, checkCtx, checkDbl, checkItr, e, indexAccessible, indexEquivalent, remove, sameAs, v |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Uri uri
| Constructor Detail |
|---|
public QNm()
public QNm(byte[] n)
n - name
public QNm(byte[] n,
QueryContext ctx)
throws QueryException
n - namectx - query context
QueryException - query exception
public QNm(byte[] n,
Uri u)
n - nameu - uripublic QNm(QName qn)
qn - qname| Method Detail |
|---|
public byte[] str()
Item
str in class Item
public boolean bool()
throws QueryException
Item
bool in class ItemQueryException - query exception
public boolean eq(Item it)
throws QueryException
Item
eq in class Itemit - item to be compared
QueryException - query exceptionpublic boolean eq(QNm n)
n - name to be compared
public int diff(Item it)
throws QueryException
Item
diff in class Itemit - item to be compared
QueryException - query exceptionpublic boolean ns()
public byte[] pref()
public byte[] ln()
public QName java()
Item
java in class Itempublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Itempublic String toString()
toString in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||