com.izforge.izpack.installer
Interface DataValidator


public interface DataValidator


Nested Class Summary
static class DataValidator.Status
           
 
Field Summary
static java.lang.String DATA_VALIDATOR_CLASSNAME_TAG
          attribute for class to use
static java.lang.String DATA_VALIDATOR_TAG
          tag-name of the datavalidator
 
Method Summary
 boolean getDefaultAnswer()
          if Installer is run in automated mode, and validator returns a warning, this method is asked, how to go on
 java.lang.String getErrorMessageId()
          Returns the string with messageId for an error
 java.lang.String getWarningMessageId()
          Returns the string with messageId for a warning
 DataValidator.Status validateData(AutomatedInstallData adata)
          Method to validate on AutomatedInstallData
 

Field Detail

DATA_VALIDATOR_TAG

static final java.lang.String DATA_VALIDATOR_TAG
tag-name of the datavalidator

See Also:
Constant Field Values

DATA_VALIDATOR_CLASSNAME_TAG

static final java.lang.String DATA_VALIDATOR_CLASSNAME_TAG
attribute for class to use

See Also:
Constant Field Values
Method Detail

validateData

DataValidator.Status validateData(AutomatedInstallData adata)
Method to validate on AutomatedInstallData

Parameters:
adata -
Returns:
DataValidator.Status the result of the validation

getErrorMessageId

java.lang.String getErrorMessageId()
Returns the string with messageId for an error

Returns:
String the messageId

getWarningMessageId

java.lang.String getWarningMessageId()
Returns the string with messageId for a warning

Returns:
String the messageId

getDefaultAnswer

boolean getDefaultAnswer()
if Installer is run in automated mode, and validator returns a warning, this method is asked, how to go on

Returns:
boolean