|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Commands>
org.basex.core.Commands
public enum Commands
This enumeration contains definitions of all available internal commands.
The find(java.lang.String) method maps a command string to the respective command.
Adding a command should be done here; a how-to is included in the source.
| Enum Constant Summary | |
|---|---|
CD
Switch context set. |
|
CHECK
Make sure the specified document is in memory. |
|
CLOSE
Close database. |
|
COPY
Insert a document into the currently loaded. |
|
CREATE
Create main-memory mapping for specified XML document. |
|
CREATEFS
Convenience alias for creating a filesystem database. |
|
CREATEINDEX
Convenience alias for creating an index. |
|
CREATEXML
Convenience alias for creating an xml database. |
|
DELETE
Evaluate XPath query without showing result. |
|
DROP
Deletes database. |
|
DROPINDEX
Convenience alias for dropping an index. |
|
DUMMYDATABASE
Database separator. |
|
DUMMYGENERAL
General separator. |
|
DUMMYQUERY
Query separator. |
|
DUMMYUPDATE
Update separator. |
|
EXIT
Terminate client. |
|
EXPORT
Export XML file. |
|
FIND
Launch a simplified query. |
|
FS
Filesystem command. |
|
GETINFO
Internal 'get info' command. |
|
GETRESULT
Internal 'get result' command. |
|
HELP
Get command overview or detailed information on one command. |
|
INFO
Show some information on the XML and memory structure. |
|
INSERT
Insert a document, tag or text into the database. |
|
LINK
Evaluate XPath query, show result and create links. |
|
LIST
List available databases. |
|
OPEN
Open a database. |
|
OPTIMIZE
Open a database. |
|
PF
Evaluate XQuery via Pathfinder and show result. |
|
PING
test database connection. |
|
PROMPT
test database connection. |
|
QUIT
alias for 'exit'. |
|
SET
Toggle chopping of whitespaces. |
|
STOP
Stop server instance. |
|
UPDATE
Insert a document into the currently opened database. |
|
XMARK
launches XMark query. |
|
XPATH
Evaluate XPath query and show result. |
|
XPATHMV
Evaluate a MedioVis query. |
|
XQENV
Evaluate XQuery and show result. |
|
XQUERY
Evaluate XQuery and show result. |
|
| Method Summary | |
|---|---|
boolean |
args(int n)
Checks the number of arguments. |
boolean |
data()
Returns if the current command needs a data reference for processing. |
java.lang.String |
help(boolean detail,
boolean all)
Returns a help string. |
boolean |
local()
Returns if the current command is supposed to be processed locally. |
boolean |
printing()
Returns if the current command yields some output. |
boolean |
server()
Returns if the current command is a pure server command. |
boolean |
updating()
Returns if the current command generates updates in the data structure. |
static Commands |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Commands[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Commands CD
public static final Commands CHECK
public static final Commands CLOSE
public static final Commands COPY
public static final Commands CREATE
public static final Commands CREATEFS
public static final Commands CREATEINDEX
public static final Commands CREATEXML
public static final Commands DELETE
public static final Commands DROP
public static final Commands DROPINDEX
public static final Commands DUMMYDATABASE
public static final Commands DUMMYGENERAL
public static final Commands DUMMYQUERY
public static final Commands DUMMYUPDATE
public static final Commands EXIT
public static final Commands EXPORT
public static final Commands FIND
public static final Commands FS
public static final Commands GETINFO
public static final Commands GETRESULT
public static final Commands HELP
public static final Commands INFO
public static final Commands INSERT
public static final Commands LINK
public static final Commands LIST
public static final Commands OPEN
public static final Commands OPTIMIZE
public static final Commands PF
public static final Commands PING
public static final Commands PROMPT
public static final Commands QUIT
public static final Commands SET
public static final Commands STOP
public static final Commands UPDATE
public static final Commands XMARK
public static final Commands XPATH
public static final Commands XPATHMV
public static final Commands XQENV
public static final Commands XQUERY
| Method Detail |
|---|
public boolean args(int n)
n - number of arguments
public boolean data()
public java.lang.String help(boolean detail,
boolean all)
detail - show detailsall - show all commands (also hidden ones)
public boolean local()
public boolean printing()
public boolean server()
public boolean updating()
public static Commands valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static Commands[] values()
for (Commands c : Commands.values()) System.out.println(c);
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||