public abstract class CustomizationCommandLineBase extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CustomizationCommandLineBase.ArgList
Wrapper class for command line argument list.
|
| Modifier and Type | Field and Description |
|---|---|
static Class[] |
STRING_PARAMETER_ARRAY
Array of method parameter classes for single String parameter.
|
static Class[] |
STRING_UNMARSHALLER_PARAMETER_ARRAY
Array of classes for String and unmarshaller parameters.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CustomizationCommandLineBase(String[] lines)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map |
applyOverrides(Map overmap)
Apply map of override values to customizations read from file or created as default.
|
protected boolean |
checkParameter(CustomizationCommandLineBase.ArgList alist)
Check extension parameter.
|
protected void |
finishParameters(CustomizationCommandLineBase.ArgList alist)
Finish processing of command line parameters.
|
List |
getExtraArgs()
Get extra arguments from command line.
|
File |
getGeneratePath()
Get generate directory.
|
protected String[] |
getUsageLines()
Get the usage lines describing command line parameters.
|
boolean |
isVerbose()
Check if verbose output requested.
|
protected abstract boolean |
loadCustomizations(String path)
Load the customizations file.
|
protected static String[] |
mergeUsageLines(String[] base,
String[] adds)
Merge two arrays of strings, returning an ordered array containing all the strings from both provided arrays.
|
abstract void |
printUsage()
Print usage information.
|
boolean |
processArgs(String[] args)
Process command line arguments array.
|
static boolean |
putKeyValue(String def,
Map map)
Set a key=value definition in a map.
|
protected void |
verboseDetails()
Print any extension details.
|
public static final Class[] STRING_PARAMETER_ARRAY
public static final Class[] STRING_UNMARSHALLER_PARAMETER_ARRAY
protected CustomizationCommandLineBase(String[] lines)
lines - public boolean processArgs(String[] args) throws JiBXException, IOException
args - true if valid, false if notJiBXExceptionIOExceptionpublic File getGeneratePath()
public List getExtraArgs()
public boolean isVerbose()
public static boolean putKeyValue(String def, Map map)
def - map - true if successful, false if errorprotected String[] getUsageLines()
protected static String[] mergeUsageLines(String[] base, String[] adds)
base - adds - protected boolean checkParameter(CustomizationCommandLineBase.ArgList alist)
alist - argument listtrue if parameter processed, false if unknownprotected void finishParameters(CustomizationCommandLineBase.ArgList alist)
alist - protected void verboseDetails()
protected abstract boolean loadCustomizations(String path) throws JiBXException, IOException
path - customization file path, null if nonetrue if successful, false if an errorJiBXExceptionIOExceptionprotected abstract Map applyOverrides(Map overmap)
overmap - override key-value mappublic abstract void printUsage()
Copyright © 2005-2014 jibx.org. All Rights Reserved.