org.apache.openejb.config
Class ValidationContext

java.lang.Object
  extended by org.apache.openejb.config.ValidationContext
All Implemented Interfaces:
ValidationResults

public class ValidationContext
extends Object
implements ValidationResults

Version:
$Rev: 1209244 $ $Date: 2011-12-01 21:18:31 +0000 (Thu, 01 Dec 2011) $

Constructor Summary
ValidationContext(Class<? extends DeploymentModule> moduleType, String name)
           
ValidationContext(DeploymentModule module)
           
 
Method Summary
 void addError(ValidationError error)
           
 void addFailure(ValidationFailure failure)
           
 void addWarning(ValidationWarning warning)
           
 void error(String component, String key, Object... details)
           
 void fail(String component, String key, Object... details)
           
 ValidationError[] getErrors()
           
 ValidationFailure[] getFailures()
           
 DeploymentModule getModule()
           
 String getModuleType()
           
 String getName()
           
 ValidationWarning[] getWarnings()
           
 boolean hasErrors()
           
 boolean hasFailures()
           
 boolean hasWarnings()
           
 void warn(String component, String key, Object... details)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationContext

public ValidationContext(Class<? extends DeploymentModule> moduleType,
                         String name)

ValidationContext

public ValidationContext(DeploymentModule module)
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.