Package org.basex.core.cmd
Class Check
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.Check
Evaluates the 'check' command: opens an existing database or
creates a new one.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocks()Adds the strings (databases, special identifiers) for which locks need to be acquired.booleanCloses an open data reference and returnstrueif this command will change theContext.data()reference.protected booleanrun()Executes the command and serializes the result (internal call).booleanReturns true if this command can be stopped.booleanReturns true if this command returns a progress value.Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, build, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, result, run, run, setInput, setInput, toString, toString, updated, updating
-
Constructor Details
-
Check
Default constructor.- Parameters:
input- input (name of database, file path, XML string)
-
-
Method Details
-
run
protected boolean run()Description copied from class:CommandExecutes the command and serializes the result (internal call). -
supportsProg
public boolean supportsProg()Description copied from class:CommandReturns true if this command returns a progress value. This method is only required by the GUI.- Overrides:
supportsProgin classCommand- Returns:
- result of check
-
stoppable
public boolean stoppable()Description copied from class:CommandReturns true if this command can be stopped. This method is only required by the GUI. -
addLocks
public void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired. -
newData
Description copied from class:CommandCloses an open data reference and returnstrueif this command will change theContext.data()reference. This method is only required by the GUI.
-