|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xbrlapi.data.bdbxml.examples.utilities.BaseUtilityExample
public abstract class BaseUtilityExample
Provides a base class that all of the concrete utility examples extend. Commandline arguments (optional ones marked with an *)
| Field Summary | |
|---|---|
protected String |
argumentDocumentation
|
protected HashMap<String,String> |
arguments
|
protected Cache |
cache
|
protected Loader |
loader
|
protected static org.apache.log4j.Logger |
logger
|
protected String |
problems
|
protected Store |
store
|
protected String |
usage
|
| Constructor Summary | |
|---|---|
BaseUtilityExample()
|
|
| Method Summary | |
|---|---|
protected String |
addArgumentDocumentation()
Provides documentation of the usage of the utility. |
protected void |
badUsage(String message)
Report incorrect usage of the utility. |
protected void |
mapArgument(String name,
String value)
Adds an argument to the argument map. |
protected void |
parseArguments(String[] args)
Responsible for parsing the command line arguments into a hashmap that maps from the text string that is the argument name (prefixed by a hyphen that is not part of the string used in the mapping) to the argument value, represented as a text string. |
protected String |
setUp()
Sets up the database store, the loader and the cache. |
protected void |
tearDown()
Closes the data store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger logger
protected Cache cache
protected Store store
protected Loader loader
protected HashMap<String,String> arguments
protected String argumentDocumentation
protected String usage
protected String problems
| Constructor Detail |
|---|
public BaseUtilityExample()
| Method Detail |
|---|
protected void parseArguments(String[] args)
args -
protected void mapArgument(String name,
String value)
name - The argument name (including the leading hyphen).value - The argument value.protected String setUp()
protected void tearDown()
protected void badUsage(String message)
message - The error message.protected String addArgumentDocumentation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||