|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.core.AbstractProcess
org.basex.core.proc.Proc
org.basex.core.proc.Create
public final class Create
Evaluates the 'create' command. Creates a new database instance for the specified arguments.
| Field Summary | |
|---|---|
static java.lang.String |
ATV
Create index option. |
static java.lang.String |
FS
Create option. |
static java.lang.String |
FTX
Create index option. |
static java.lang.String |
INDEX
Create option. |
static java.lang.String |
MAB2
Create option. |
static java.lang.String |
SAX
Create option. |
static java.lang.String |
TXT
Create index option. |
static java.lang.String |
WRD
Create index option. |
static java.lang.String |
XML
Create option. |
| Fields inherited from class org.basex.core.AbstractProcess |
|---|
cmd |
| Constructor Summary | |
|---|---|
Create()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
chopPath(java.lang.String name)
Chops the path and the XML suffix of the specified filename. |
static java.lang.String |
filePath(java.lang.String file,
boolean addXML)
Returns the filename if the specified file exists or throws an exception. |
static Data |
xml(java.lang.String db,
java.lang.String fn)
Creates and returns a database for the specified XML document. |
| 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 |
| Field Detail |
|---|
public static final java.lang.String ATV
public static final java.lang.String FS
public static final java.lang.String FTX
public static final java.lang.String INDEX
public static final java.lang.String MAB2
public static final java.lang.String SAX
public static final java.lang.String TXT
public static final java.lang.String WRD
public static final java.lang.String XML
| Constructor Detail |
|---|
public Create()
| Method Detail |
|---|
public static java.lang.String chopPath(java.lang.String name)
name - filename
public static java.lang.String filePath(java.lang.String file,
boolean addXML)
throws java.io.FileNotFoundException
file - file to be checkedaddXML - add xml suffix if file was not found
java.io.FileNotFoundException - file not found exception
public static Data xml(java.lang.String db,
java.lang.String fn)
db - name of the database to be createdfn - database name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||