| java.lang.Object org.jibx.binding.generator.CustomizationCommandLineBase
All known Subclasses: org.jibx.ws.wsdl.WsdlGeneratorCommandLine, org.jibx.binding.generator.BindingGeneratorCommandLine,
CustomizationCommandLineBase | abstract public class CustomizationCommandLineBase (Code) | | Command line processor for customizable tools.
|
Inner Class :protected static class ArgList | |
BASE_USAGE_LINES | final protected static String[] BASE_USAGE_LINES(Code) | | Ordered array of usage lines.
|
STRING_PARAMETER_ARRAY | final public static Class[] STRING_PARAMETER_ARRAY(Code) | | Array of method parameter classes for single String parameter.
|
STRING_UNMARSHALLER_PARAMETER_ARRAY | final public static Class[] STRING_UNMARSHALLER_PARAMETER_ARRAY(Code) | | Array of classes for String and unmarshaller parameters.
|
applyKeyValueMap | public static Map applyKeyValueMap(Map map, Object obj)(Code) | | Apply a key/value map to a customization object instance. This uses
reflection to match the keys to either set methods (with names of the
form setZZZText, or setZZZ, taking a single String parameter) or String
fields (named m_ZZZ). The ZZZ in the names is based on the key name, with
hyphenation converted to camel case (leading upper camel case, for the
method names).
Parameters: map - Parameters: obj - map for key/values not found in the supplied object |
applyOverrides | abstract protected Map applyOverrides(Map overmap)(Code) | | Apply map of override values to customizations read from file or
created as default.
Parameters: overmap - override key-value map map for key/values not recognized |
checkParameter | protected boolean checkParameter(ArgList alist)(Code) | | Check extension parameter. This method may be overridden by subclasses
to process parameters beyond those known to this base class.
Parameters: alist - argument list true if parameter processed, false ifunknown |
getExtraArgs | public List getExtraArgs()(Code) | | Get extra arguments from command line. These extra arguments must follow
all parameter flags.
args |
getGeneratePath | public File getGeneratePath()(Code) | | Get generate directory.
directory |
loadCustomizations | abstract protected void loadCustomizations(String path, IClassLocator loc) throws JiBXException, IOException(Code) | | Load the customizations file. This method must load the specified
customizations file, or create a default customizations instance, of the
appropriate type.
Parameters: path - customizations file path, null if none Parameters: loc - class locator throws: JiBXException - throws: IOException - |
mergeUsageLines | protected String[] mergeUsageLines(String[] base, String[] adds)(Code) | | Merge two arrays of strings, returning an ordered array containing all
the strings from both provided arrays.
Parameters: base - Parameters: adds - ordered merged |
printUsage | abstract public void printUsage()(Code) | | Print usage information.
|
putKeyValue | public static boolean putKeyValue(String def, Map map)(Code) | | Set a key=value definition in a map. This is a command line processing
assist method that prints an error message directly if the expected
format is not found.
Parameters: def - Parameters: map - true if successful, false if error |
verboseDetails | protected void verboseDetails()(Code) | | Print any extension details. This method may be overridden by subclasses
to print extension parameter values for verbose output.
|
|
|