org.basex.core.proc
Class Check

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.AbstractProcess
          extended by org.basex.core.proc.Proc
              extended by org.basex.core.proc.Check

public final class Check
extends Proc

Evaluates the 'check' command. Checks if the specified XML document is in memory; if negative, the database file is opened; if it doesn't exist, a new database instance is created.

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

Field Summary
 
Fields inherited from class org.basex.core.AbstractProcess
cmd
 
Constructor Summary
Check()
           
 
Method Summary
static Data check(java.lang.String path)
          Static command for getting a database reference.
 
Methods inherited from class org.basex.core.proc.Proc
det, execute, execute, get, head, info, info, output, output, prog, result, toString
 
Methods inherited from class org.basex.core.Progress
detail, header, progress, progress, stop, stopped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Check

public Check()
Method Detail

check

public static Data check(java.lang.String path)
Static command for getting a database reference. No warnings are thrown; instead, an empty reference is returned.

Parameters:
path - file path
Returns:
data instance