Class TaskOutputValidator
java.lang.Object
co.yellowdog.platform.model.beanvalidation.CustomValidator<TaskOutput>
co.yellowdog.platform.model.validation.customvalidators.TaskOutputValidator
Custom validator applied to task outputs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@AssertTrue(message="must have directoryName set if and only if source is OTHER_DIRECTORY") boolean
@AssertTrue(message="must have file pattern specified unless source is PROCESS_OUTPUT") boolean
Methods inherited from class co.yellowdog.platform.model.beanvalidation.CustomValidator
getTarget, onSetTarget
-
Constructor Details
-
TaskOutputValidator
public TaskOutputValidator()
-
-
Method Details
-
isDirectoryNameSpecifiedIfAndOnlyIfSourceIsOtherDirectory
@AssertTrue(message="must have directoryName set if and only if source is OTHER_DIRECTORY") public @AssertTrue(message="must have directoryName set if and only if source is OTHER_DIRECTORY") boolean isDirectoryNameSpecifiedIfAndOnlyIfSourceIsOtherDirectory() -
isFilePatternSpecifiedIfAndOnlyIfSourceNotProcessOutput
@AssertTrue(message="must have file pattern specified unless source is PROCESS_OUTPUT") public @AssertTrue(message="must have file pattern specified unless source is PROCESS_OUTPUT") boolean isFilePatternSpecifiedIfAndOnlyIfSourceNotProcessOutput()
-