org.openmdx.base.application.configuration
Class ConfigurationValidationReport

java.lang.Object
  extended by org.openmdx.kernel.application.configuration.Report
      extended by org.openmdx.base.application.configuration.ConfigurationValidationReport

Deprecated. in favour of Report.

public class ConfigurationValidationReport
extends Report

This class holds the results from a configuration verification/validation.


Field Summary
 
Fields inherited from class org.openmdx.kernel.application.configuration.Report
reports, success, warning
 
Constructor Summary
ConfigurationValidationReport(String name, int majorVersion, int minorVersion)
          Deprecated. Creates a new validation report object.
 
Method Summary
 void addErrorReport(String report)
          Deprecated. Add an error report.
 void addInfoReport(String report)
          Deprecated. Add an info report.
 void addReport(List reports)
          Deprecated.  
 void addWarningReport(String report)
          Deprecated.  
 int getMajorVersion()
          Deprecated. Returns the configuration's major version.
 int getMinorVersion()
          Deprecated. Returns the configuration's minor version.
 List getReports()
          Deprecated.  
 void setSucceeded(boolean succeeded)
          Deprecated. Sets the configuration result to succeeded or failed.
 String toString()
          Deprecated. Returns a string representation of the report.
 
Methods inherited from class org.openmdx.kernel.application.configuration.Report
addAll, addError, addError, addInfo, addWarning, addWarning, getContext, getName, getVersion, hasWarning, isSuccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationValidationReport

public ConfigurationValidationReport(String name,
                                     int majorVersion,
                                     int minorVersion)
Deprecated. 
Creates a new validation report object. It does not contain any reports and the 'valid' flag is set to true.

Parameters:
name - The name of this configuration
majorVersion - The major version of the configuration [0,1,2,..]
minorVersion - The minor version of the configuration [0,1,2,..]
Method Detail

setSucceeded

public void setSucceeded(boolean succeeded)
Deprecated. 
Sets the configuration result to succeeded or failed.

Parameters:
succeeded - The configuration result

addErrorReport

public void addErrorReport(String report)
Deprecated. 
Add an error report. A ConfigurationValidationReport may have any number of reports.

E.g.:


addInfoReport

public void addInfoReport(String report)
Deprecated. 
Add an info report. A ConfigurationValidationReport may have any number of reports.


addWarningReport

public void addWarningReport(String report)
Deprecated. 

addReport

public void addReport(List reports)
Deprecated. 

getReports

public List getReports()
Deprecated. 

getMajorVersion

public int getMajorVersion()
Deprecated. 
Returns the configuration's major version.

Returns:
A configuration major version

getMinorVersion

public int getMinorVersion()
Deprecated. 
Returns the configuration's minor version.

Returns:
A configuration minor version

toString

public String toString()
Deprecated. 
Returns a string representation of the report.

Overrides:
toString in class Report
Returns:
a stringified report


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.