public class ValidationContext extends java.lang.Object implements ValidationResults
Constructor and Description |
---|
ValidationContext(java.lang.Class<? extends DeploymentModule> moduleType,
java.lang.String name) |
ValidationContext(DeploymentModule module) |
Modifier and Type | Method and Description |
---|---|
void |
addError(ValidationError error) |
void |
addFailure(ValidationFailure failure) |
void |
addWarning(ValidationWarning warning) |
void |
error(java.lang.String component,
java.lang.String key,
java.lang.Object... details) |
void |
fail(java.lang.String component,
java.lang.String key,
java.lang.Object... details) |
ValidationError[] |
getErrors() |
ValidationFailure[] |
getFailures() |
DeploymentModule |
getModule() |
java.lang.String |
getModuleType() |
java.lang.String |
getName() |
ValidationWarning[] |
getWarnings() |
boolean |
hasErrors() |
boolean |
hasFailures() |
boolean |
hasWarnings() |
void |
warn(java.lang.String component,
java.lang.String key,
java.lang.Object... details) |
public ValidationContext(java.lang.Class<? extends DeploymentModule> moduleType, java.lang.String name)
public ValidationContext(DeploymentModule module)
public DeploymentModule getModule()
public void fail(java.lang.String component, java.lang.String key, java.lang.Object... details)
public void warn(java.lang.String component, java.lang.String key, java.lang.Object... details)
public void error(java.lang.String component, java.lang.String key, java.lang.Object... details)
public void addWarning(ValidationWarning warning)
public void addFailure(ValidationFailure failure)
public void addError(ValidationError error)
public ValidationFailure[] getFailures()
getFailures
in interface ValidationResults
public ValidationWarning[] getWarnings()
getWarnings
in interface ValidationResults
public ValidationError[] getErrors()
getErrors
in interface ValidationResults
public boolean hasWarnings()
hasWarnings
in interface ValidationResults
public boolean hasFailures()
hasFailures
in interface ValidationResults
public boolean hasErrors()
hasErrors
in interface ValidationResults
public java.lang.String getName()
getName
in interface ValidationResults
public java.lang.String getModuleType()
getModuleType
in interface ValidationResults