Skip to content

Commit 078e906

Browse files
committed
feat(pattern): add get/set compiled regex to secondary patterns
1 parent 362c73f commit 078e906

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/com/redhat/podmortem/common/model/pattern/SecondaryPattern.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.redhat.podmortem.common.model.pattern;
22

3+
import com.fasterxml.jackson.annotation.JsonIgnore;
34
import com.fasterxml.jackson.annotation.JsonProperty;
45
import io.quarkus.runtime.annotations.RegisterForReflection;
56

@@ -11,6 +12,8 @@ public class SecondaryPattern {
1112
@JsonProperty("proximity_window")
1213
private int proximityWindow;
1314

15+
@JsonIgnore private java.util.regex.Pattern compiledRegex;
16+
1417
public String getRegex() {
1518
return regex;
1619
}
@@ -34,4 +37,14 @@ public int getProximityWindow() {
3437
public void setProximityWindow(int proximityWindow) {
3538
this.proximityWindow = proximityWindow;
3639
}
40+
41+
@JsonIgnore
42+
public java.util.regex.Pattern getCompiledRegex() {
43+
return compiledRegex;
44+
}
45+
46+
@JsonIgnore
47+
public void setCompiledRegex(java.util.regex.Pattern compiledRegex) {
48+
this.compiledRegex = compiledRegex;
49+
}
3750
}

0 commit comments

Comments
 (0)