public class XmlValidatorModule extends Module
Constructor and Description |
---|
XmlValidatorModule(java.lang.String path) |
XmlValidatorModule(java.lang.String[] args)
Constructor for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Performs the actions provieded my the implementing module.
|
protected Options |
getActionOptions(java.lang.String actionName)
Required for the command line help system.
|
java.util.List<java.lang.String[]> |
getValidationErrors()
Call this method after calling 'execute()'.
|
static java.lang.String |
moduleDescription() |
protected void |
parseParams()
Method to handle parameter value parsing in subclasses.
|
boolean |
requiresConnection()
Tells the caller if this module requires connection to the repository.
|
getArgs, getCommandLine, getModuleName, getOptions, notifyListeners, notifyListeners, notifyListeners, notifyListeners, notifyListeners, parseArgs
public XmlValidatorModule(java.lang.String[] args)
args
- (String[]) The current command line user input.public XmlValidatorModule(java.lang.String path)
path
- Path to a file or a directory.protected final void parseParams() throws java.lang.Exception
Module
parseParams
in class Module
java.lang.Exception
- Is thrown when command line values fail to pass the required validation.public final void execute() throws java.lang.Exception
Module
protected final Options getActionOptions(java.lang.String actionName) throws java.lang.Exception
Module
getActionOptions
in class Module
actionName
- (String) Name of the submodule called in the command line.java.lang.Exception
- Error retrieving the requestes informations.public static java.lang.String moduleDescription()
public java.util.List<java.lang.String[]> getValidationErrors()
public boolean requiresConnection()
Module
requiresConnection
in class Module