Class PatchEntry
java.lang.Object
com.scivicslab.pojoactor.workflow.kustomize.PatchEntry
Represents a patch entry in overlay-conf.yaml.
Supports two formats:
- Simple: just a patch file name (target is null, applies to all matching workflows)
- Targeted: specifies both target workflow and patch file
Example YAML formats:
# Simple format (target is null)
patches:
- patch.yaml
# Targeted format
patches:
- target: setup.yaml
patch: patch.yaml
- target: build.yaml
patch: patch-build.yaml
- Since:
- 2.9.1
- Author:
- devteam@scivics-lab.com
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for YAML deserialization.PatchEntry(String patch) Constructs a PatchEntry with just a patch file (no specific target).PatchEntry(String target, String patch) Constructs a PatchEntry with both target and patch. -
Method Summary
-
Constructor Details
-
PatchEntry
public PatchEntry()Default constructor for YAML deserialization. -
PatchEntry
Constructs a PatchEntry with just a patch file (no specific target).- Parameters:
patch- the patch file name
-
PatchEntry
Constructs a PatchEntry with both target and patch.- Parameters:
target- the target workflow file namepatch- the patch file name
-
-
Method Details
-
getTarget
Gets the target workflow file name.- Returns:
- the target file name, or null if patch applies to all matching workflows
-
setTarget
Sets the target workflow file name.- Parameters:
target- the target file name
-
getPatch
Gets the patch file name.- Returns:
- the patch file name
-
setPatch
Sets the patch file name.- Parameters:
patch- the patch file name
-
hasTarget
public boolean hasTarget()Checks if this patch entry has a specific target.- Returns:
- true if target is specified, false otherwise
-
toString
-