gov.nasa.pds.vtool.status
Class ExitStatus

java.lang.Object
  extended by gov.nasa.pds.vtool.status.ExitStatus
All Implemented Interfaces:
ExitStatusType

public class ExitStatus
extends java.lang.Object
implements ExitStatusType

Exit Status values

Author:
mcayanan

Field Summary
 
Fields inherited from interface gov.nasa.pds.vtool.status.ExitStatusType
APPLICATION_ERROR, ERRORS_FOUND, SKIPPED_FILES, SUCCESS, SYSTEM_ERROR, WARNINGS_FOUND
 
Constructor Summary
ExitStatus()
          Constructor
 
Method Summary
 int getStatus(java.lang.String severity)
          Get the status
 void setStatus(int value)
          Set the status
 void setStatus(ValidationRecord record)
          Set the status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExitStatus

public ExitStatus()
           throws java.lang.IllegalArgumentException
Constructor

Parameters:
verboseLevel - The severity level and above to include when determining the exit status. Valid values are "INFO", "WARNING" or "ERROR".
Throws:
java.lang.IllegalArgumentException - If the verbose level
Method Detail

getStatus

public int getStatus(java.lang.String severity)
Get the status

Parameters:
severity - The severity level and above to include when determining the exit status.
Returns:
The exit status value.

setStatus

public void setStatus(int value)
               throws java.lang.IndexOutOfBoundsException
Set the status

Parameters:
value - integer value that would represent the status.
Throws:
java.lang.IndexOutOfBoundsException

setStatus

public void setStatus(ValidationRecord record)
Set the status

Parameters:
record - A ValidationRecord containing the results of a validaiton run.


Copyright © 2005-2007 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.