Olabusayo Kilo created DAFFODIL-3054:
----------------------------------------
Summary: Automate Generation of Tunable with Warn ID and Check
Key: DAFFODIL-3054
URL: https://issues.apache.org/jira/browse/DAFFODIL-3054
Project: Daffodil
Issue Type: Improvement
Reporter: Olabusayo Kilo
We need to create a simpler way to define checks so that all you have to do is
name the thing "EmptyValueDelimiterPolicy", the predicate, and the warning and
error rmessage texts. The creation of a corresponding tunable name, warnID, and
check method should all just happen.
Or perhaps you have to write the SDW and SDE message construction as methods,
and a documentation string, but the tunable, the WarnID, XSD for validation of
config, CLI options, etc., all get created automatically.
The only other thing we should have to do is figure out what object has to call
it. i.e., add the line
requiredEvaluationsIfActivated(checkDelimitedLengthEVDP)
The propgen module could do this. It really should support the need for
rule-based property error/warning checking, and tightening/loosening
restrictions in the implementation about various properties, at least in the
case where it's about exactly one property.
See https://github.com/apache/daffodil/pull/1577#discussion_r2439996281 for
context
--
This message was sent by Atlassian Jira
(v8.20.10#820010)