|
||||||||||
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.xquery.expr.Expr
org.basex.query.xquery.item.Item
org.basex.query.xquery.item.QNm
public final class QNm
QName item.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr |
---|
Expr.Return, Expr.Using |
Field Summary | |
---|---|
Uri |
uri
URI. |
Fields inherited from class org.basex.query.xquery.item.Item |
---|
type |
Constructor Summary | |
---|---|
QNm()
Empty Constructor. |
|
QNm(byte[] n)
Constructor. |
|
QNm(byte[] n,
Uri u)
Constructor. |
|
QNm(byte[] n,
XQContext ctx)
Constructor. |
|
QNm(javax.xml.namespace.QName qn)
Convenient method for converting a Java QName to a project specific one. |
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. |
javax.xml.namespace.QName |
java()
Returns a Java object. |
byte[] |
ln()
Returns the local name. |
void |
name(byte[] nm)
Sets the 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, d, dbl, dec, flt, hash, i, iter, iter, itr, n, name, node, plan, returned, s, score, score, serialize, size, u, uses |
Methods inherited from class org.basex.query.xquery.expr.Expr |
---|
e |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Uri uri
Constructor Detail |
---|
public QNm()
public QNm(byte[] n)
n
- namepublic QNm(byte[] n, XQContext ctx) throws XQException
n
- namectx
- xquery context
XQException
- query exceptionpublic QNm(byte[] n, Uri u)
n
- nameu
- uripublic QNm(javax.xml.namespace.QName qn)
qn
- qnameMethod Detail |
---|
public void name(byte[] nm)
nm
- namepublic byte[] str()
Item
str
in class Item
public boolean bool() throws XQException
Item
bool
in class Item
XQException
- evaluation exceptionpublic boolean eq(Item it) throws XQException
Item
eq
in class Item
it
- item to be compared.
XQException
- evaluation exceptionpublic boolean eq(QNm n)
n
- name to be compared
public int diff(Item it) throws XQException
Item
diff
in class Item
it
- item to be compared.
XQException
- evaluation exceptionpublic boolean ns()
public byte[] pre()
public byte[] ln()
public javax.xml.namespace.QName java()
Item
java
in class Item
public java.lang.String toString()
toString
in class Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |