org.apache.openejb.config
Class ValidationContext
java.lang.Object
org.apache.openejb.config.ValidationContext
- All Implemented Interfaces:
- ValidationResults
public class ValidationContext
- extends Object
- implements ValidationResults
- Version:
- $Rev: 1153797 $ $Date: 2011-08-04 09:09:44 +0000 (Thu, 04 Aug 2011) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationContext
public ValidationContext(Class<? extends DeploymentModule> moduleType,
String name)
ValidationContext
public ValidationContext(DeploymentModule module)
getModule
public DeploymentModule getModule()
fail
public void fail(String component,
String key,
Object... details)
warn
public void warn(String component,
String key,
Object... details)
error
public void error(String component,
String key,
Object... details)
addWarning
public void addWarning(ValidationWarning warning)
addFailure
public void addFailure(ValidationFailure failure)
addError
public void addError(ValidationError error)
getFailures
public ValidationFailure[] getFailures()
- Specified by:
getFailures in interface ValidationResults
getWarnings
public ValidationWarning[] getWarnings()
- Specified by:
getWarnings in interface ValidationResults
getErrors
public ValidationError[] getErrors()
- Specified by:
getErrors in interface ValidationResults
hasWarnings
public boolean hasWarnings()
- Specified by:
hasWarnings in interface ValidationResults
hasFailures
public boolean hasFailures()
- Specified by:
hasFailures in interface ValidationResults
hasErrors
public boolean hasErrors()
- Specified by:
hasErrors in interface ValidationResults
getName
public String getName()
- Specified by:
getName in interface ValidationResults
getModuleType
public String getModuleType()
- Specified by:
getModuleType in interface ValidationResults
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.