Package gov.nasa.pds.tools.util
Class FlagsUtil
java.lang.Object
gov.nasa.pds.tools.util.FlagsUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanGet the contentValidationFlag valuestatic ExceptionTypeGet the severity valuestatic booleanGet the skipProductValidation valuestatic booleanGet the stackPrintingFlag valuestatic voidInitialize flags to their default statesstatic voidsetContentValidationFlag(boolean flag) Set the contentValidationFlagvaluestatic voidsetSeverity(int level) Set the severity valuestatic voidsetSkipProductValidation(boolean flag) Set the skipProductValidation valuestatic voidsetStackPrintingFlag(boolean flag) Set the stackPrintingFlag value
-
Constructor Details
-
FlagsUtil
public FlagsUtil()
-
-
Method Details
-
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
Get the severity value- Parameters:
None-- Returns:
- the severityType value
-