org.basex.query.xquery.item
Class Uri

java.lang.Object
  extended by org.basex.query.ExprInfo
      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.Uri

public final class Uri
extends Str

URI item.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr
Expr.Return, Expr.Using
 
Field Summary
static Uri EMPTY
          Empty URI.
 
Fields inherited from class org.basex.query.xquery.item.Str
direct, ZERO
 
Fields inherited from class org.basex.query.xquery.item.Item
type
 
Method Summary
 boolean absolute()
          Returns if this is an absolute URI.
 boolean eq(Uri uri)
          Compares the specified uri.
 Uri resolve(Uri add)
          Appends the specified address.
static Uri uri(byte[] v)
          Creates a new uri instance.
 boolean valid()
          Checks the validity of this URI.
 
Methods inherited from class org.basex.query.xquery.item.Str
bool, dbl, dec, diff, eq, flt, get, get, iter, itr, str, toString
 
Methods inherited from class org.basex.query.xquery.item.Item
castErr, comp, d, hash, i, iter, iter, java, 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

EMPTY

public static final Uri EMPTY
Empty URI.

Method Detail

uri

public static Uri uri(byte[] v)
Creates a new uri instance.

Parameters:
v - value
Returns:
uri instance

eq

public boolean eq(Uri uri)
Compares the specified uri.

Parameters:
uri - uri to be compared
Returns:
result of check

resolve

public Uri resolve(Uri add)
Appends the specified address. If one of the URIs is invalid, the original uri is returned.

Parameters:
add - address to be appended
Returns:
new uri

absolute

public boolean absolute()
Returns if this is an absolute URI.

Returns:
result of check

valid

public boolean valid()
Checks the validity of this URI.

Returns:
result of check