Package ai.pipestream.api.validation
Enum Class ValidationMode
- All Implemented Interfaces:
Serializable,Comparable<ValidationMode>,Constable
Defines the validation mode for pipeline configurations.
Different modes apply different levels of validation strictness.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDesign mode - applies structural and logical validation.Production mode - applies full validation suite.Testing mode - applies minimal validation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDesign()Checks if this is design mode.booleanChecks if this is production mode.booleanChecks if this is testing mode.static ValidationModeReturns the enum constant of this class with the specified name.static ValidationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRODUCTION
Production mode - applies full validation suite. Requires pipelines to pass all validations without errors or warnings. Suitable for pipelines ready for deployment. -
DESIGN
Design mode - applies structural and logical validation. Allows saving pipelines that may have warnings. Suitable for design-time pipeline definitions. -
TESTING
Testing mode - applies minimal validation. Allows incomplete pipelines for testing purposes. Suitable for test environments.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isProduction
public boolean isProduction()Checks if this is production mode.- Returns:
- true if this is PRODUCTION mode
-
isDesign
public boolean isDesign()Checks if this is design mode.- Returns:
- true if this is DESIGN mode
-
isTesting
public boolean isTesting()Checks if this is testing mode.- Returns:
- true if this is TESTING mode
-