Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initiatedContent="yes" with zero-length initiator
A group with initiatedContent="yes" but a zero-length initiator should be a schema definition error. Fix the bug and add four TDML tests to DelimiterProperties.tdml to check that it is fixed. Refactor two methods and one field to make their purpose clearer: - ElementBase: initTermTestExpression renamed to hasNonEmptyDelimiter - ConstantExpression: value pulled into CompiledExpression - ConstantExpression: isKnownNonEmpty pulled into CompiledExpression - RuntimeExpressionDPath: isKnownNonEmpty pulled into CompiledExpression - CompiledExpression: isKnownNonEmpty renamed to isConstantEmptyString - CompiledExpression: valueForDebugPrinting renamed to value Define three new methods to implement the check: - InitiatedTerminatedMixin: hasNonZeroLengthInitiator - InitiatedTerminatedMixin: mustMatchNonZeroData - CompiledExpression: isKnownCanMatchEmptyString Pass e.mustMatchNonZeroData to DelimiterTextParse constructor. Add compile-time and run-time checks to the right places: - ModelGroup: initiatedContentCheck - DelimiterTextParse: parse Fix a few misspellings, update comments, etc. DAFFODIL-2199
- Loading branch information
Showing
12 changed files
with
174 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters