1 // Generated by delombok at Mon Apr 14 16:48:01 UTC 2025 2 package de.larssh.jes; 3 4 import java.util.regex.Pattern; 5 6 /** 7 * This enumeration contains job flags, such as special status a job can be in. 8 */ 9 public enum JobFlag { 10 /** 11 * Flag for dup. jobs. 12 */ 13 DUP("-DUP-"), /** 14 * Flag for jobs with JCL error. 15 */ 16 JCL_ERROR("\\(JCL error\\)"), /** 17 * Flag for held jobs. 18 */ 19 HELD("-HELD-"); 20 /** 21 * Pattern used for JES communication to parse jobs rest values 22 */ 23 private final Pattern restPattern; 24 25 /** 26 * This enumeration contains job flags, such as special status a job can be in. 27 * 28 * @param restPattern pattern used for JES communication to parse jobs rest 29 * values 30 */ 31 JobFlag(final String restPattern) { 32 this.restPattern = Pattern.compile(restPattern, Pattern.CASE_INSENSITIVE); 33 } 34 35 /** 36 * Pattern used for JES communication to parse jobs rest values 37 * 38 * @return pattern used for JES communication to parse jobs rest values 39 */ 40 @java.lang.SuppressWarnings("all") 41 @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code") 42 @lombok.Generated 43 public Pattern getRestPattern() { 44 return this.restPattern; 45 } 46 }