Package gov.nasa.pds.tools.util
Class FlagsUtil
- java.lang.Object
-
- gov.nasa.pds.tools.util.FlagsUtil
-
public class FlagsUtil extends Object
Class that keep track of different flags from command line to be made available to other validator that cannot easily be passed to.
-
-
Constructor Summary
Constructors Constructor Description FlagsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getContentValidationFlag()
Get the contentValidationFlag valuestatic ExceptionType
getSeverity()
Get the severity valuestatic boolean
getSkipProductValidation()
Get the skipProductValidation valuestatic boolean
getStackPrintingFlag()
Get the stackPrintingFlag valuestatic void
initialize()
Initialize flags to their default statesstatic void
setContentValidationFlag(boolean flag)
Set the contentValidationFlagvaluestatic void
setSeverity(int level)
Set the severity valuestatic void
setSkipProductValidation(boolean flag)
Set the skipProductValidation valuestatic void
setStackPrintingFlag(boolean flag)
Set the stackPrintingFlag value
-
-
-
Method Detail
-
initialize
public static void initialize()
Initialize flags to their default states- Parameters:
None
-
-
setStackPrintingFlag
public static void setStackPrintingFlag(boolean flag)
Set the stackPrintingFlag value- Parameters:
flag
- The boolean value to set stackPrintingFlag to
-
getStackPrintingFlag
public static boolean getStackPrintingFlag()
Get the stackPrintingFlag value- Parameters:
None
-- Returns:
- the stackPrintingFlag value
-
setContentValidationFlag
public static void setContentValidationFlag(boolean flag)
Set the contentValidationFlagvalue- Parameters:
flag
- The boolean value to set contentValidationFlag to
-
getContentValidationFlag
public static boolean getContentValidationFlag()
Get the contentValidationFlag value- Parameters:
None
-- Returns:
- the contentValidationFlag value
-
setSkipProductValidation
public static void setSkipProductValidation(boolean flag)
Set the skipProductValidation value- Parameters:
flag
- The boolean value to set skipProductValidation to
-
getSkipProductValidation
public static boolean getSkipProductValidation()
Get the skipProductValidation value- Parameters:
None
-- Returns:
- the skipProductValidation valueNone
-
setSeverity
public static void setSeverity(int level)
Set the severity value- Parameters:
value
- The boolean value to set skipProductValidation to
-
getSeverity
public static ExceptionType getSeverity()
Get the severity value- Parameters:
None
-- Returns:
- the severityType value
-
-