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 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(String severity)
          Get the status
 void setStatus(int value)
          Set the status
 void setStatus(Report report)
          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 IllegalArgumentException
Constructor

Throws:
IllegalArgumentException - If the verbose level
Method Detail

getStatus

public int getStatus(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 IndexOutOfBoundsException
Set the status

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

setStatus

public void setStatus(Report report)
Set the status

Parameters:
report - A Report containing the results of a validaiton run.


Copyright © 2005-2014 Planetary Data System. All Rights Reserved.