|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.tools.XMLTools
XMLTools parses command line arguments and executes corresponding command to give user Xindice management flexibility within the current Database.
Nested Class Summary | |
static class |
XMLTools.Action
|
static class |
XMLTools.Config
|
Field Summary | |
static String |
ACTION
|
static String |
COLLECTION
|
static String |
COMMAND_LIST
|
static String |
DB_CONFIG
|
static String |
EXTENSION
|
static String |
FILE_PATH
|
static String |
FILER
|
static String |
HELP
|
static String |
LOCAL
|
static String |
MAX_KEY_SIZE
|
static String |
NAME_OF
|
static String |
NAMESPACES
|
static String |
PAGE_COUNT
|
static String |
PAGE_SIZE
|
static String |
PATTERN
|
static String |
QUERY
|
static String |
TYPE
|
static String |
VERBOSE
|
Constructor Summary | |
XMLTools()
Constructor for XMLTools, includes default variables for the command line. |
|
XMLTools(XMLTools.Config config)
Constructor for XMLTools based on existing Config. |
Method Summary | |
boolean |
execute()
This method is to carry out execution, after instance variables being setup by process( args ) |
protected List |
getCommands()
Returns the |
void |
init()
Carries out necessary initialization of this class. |
static void |
main(String[] args)
|
protected void |
parseArguments(String[] args)
Parses and validated the arguments of the command line. |
void |
process(String[] args)
The Process function is designed for the implementation of the command line tools, as well as, making the command line easier to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String COLLECTION
public static final String FILER
public static final String EXTENSION
public static final String FILE_PATH
public static final String ACTION
public static final String NAME_OF
public static final String PATTERN
public static final String QUERY
public static final String VERBOSE
public static final String HELP
public static final String TYPE
public static final String PAGE_SIZE
public static final String MAX_KEY_SIZE
public static final String LOCAL
public static final String DB_CONFIG
public static final String NAMESPACES
public static final String COMMAND_LIST
public static final String PAGE_COUNT
Constructor Detail |
public XMLTools()
public XMLTools(XMLTools.Config config)
Method Detail |
public static void main(String[] args)
public void init() throws XindiceException, FileNotFoundException
XindiceException
FileNotFoundException
protected List getCommands()
public void process(String[] args) throws XindiceException
XindiceException
protected void parseArguments(String[] args) throws IllegalArgumentException
IllegalArgumentException
- if an error is foundpublic boolean execute() throws Exception
Exception
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |