org.basex.query.xquery.item
Class NCN

java.lang.Object
  extended by org.basex.query.xquery.expr.Expr
      extended by org.basex.query.xquery.item.Item
          extended by org.basex.query.xquery.item.Str
              extended by org.basex.query.xquery.item.NCN
Direct Known Subclasses:
Ent, ID, IDR

public class NCN
extends Str

NCName item.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.query.xquery.item.Str
ZERO
 
Fields inherited from class org.basex.query.xquery.expr.Expr
type
 
Constructor Summary
NCN(byte[] v)
          Constructor.
NCN(byte[] v, Type t)
          Constructor.
 
Method Summary
static void check(byte[] name)
          Checks the validity of the specified name.
 
Methods inherited from class org.basex.query.xquery.item.Str
bool, dbl, diff, eq, flt, get, itr, s, serialize, serialize, str, toString
 
Methods inherited from class org.basex.query.xquery.item.Item
castErr, comp, eval, i, info, iter, serialize, size
 
Methods inherited from class org.basex.query.xquery.expr.Expr
cls, d, e, n, node, u
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NCN

public NCN(byte[] v)
    throws XQException
Constructor.

Parameters:
v - value
Throws:
XQException - evaluation exception

NCN

public NCN(byte[] v,
           Type t)
    throws XQException
Constructor.

Parameters:
v - value
t - data type
Throws:
XQException - evaluation exception
Method Detail

check

public static void check(byte[] name)
                  throws XQException
Checks the validity of the specified name.

Parameters:
name - name to be checked
Throws:
XQException - if name is invalid