Module agentforge4j.config.loader
Class RequiredArtifactsPresentValidator
java.lang.Object
com.agentforge4j.config.loader.agent.RequiredArtifactsPresentValidator
- All Implemented Interfaces:
ArtifactValidator
ArtifactValidator that performs no format-specific parsing: it asserts every artifact the selecting
VALIDATE step captured carries non-blank content. The runtime's generic required-file allowlist already
guarantees every declared path is present before this validator runs, so this is the generic presence gate a
VALIDATE step selects when it needs nothing beyond that.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStable id aVALIDATEstep uses to select this validator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate(ArtifactValidationContext context) Validates the captured artifacts.The stable identifier aVALIDATEstep uses to select this validator.
-
Field Details
-
VALIDATOR_ID
Stable id aVALIDATEstep uses to select this validator.- See Also:
-
-
Constructor Details
-
RequiredArtifactsPresentValidator
public RequiredArtifactsPresentValidator()
-
-
Method Details
-
validatorId
Description copied from interface:ArtifactValidatorThe stable identifier aVALIDATEstep uses to select this validator.- Specified by:
validatorIdin interfaceArtifactValidator- Returns:
- non-blank validator id
-
validate
Description copied from interface:ArtifactValidatorValidates the captured artifacts.- Specified by:
validatein interfaceArtifactValidator- Parameters:
context- read-only view of the selecting step's declared artifacts- Returns:
- the validation outcome
-