Class Preprocessors
java.lang.Object
pro.verron.officestamper.preset.Preprocessors
A helper class that provides pre-processing functionality for
WordprocessingMLPackage documents.-
Method Summary
Modifier and TypeMethodDescriptionstatic PreProcessorReturns aPreProcessorobject that merges same style runs that are next to each other in aWordprocessingMLPackagedocument.static PreProcessorReturns aPreProcessorobject that prepares comment processors for use with the stamper.static PreProcessorpreparePlaceholders(String opening, String element) Returns aPreProcessorobject that prepares inline placeholders introduced by the given opening delimiter.static PreProcessorReturns aPreProcessorobject that removes all language informations such as grammatical and orthographics markers in aWordprocessingMLPackagedocument.static PreProcessorReturns aPreProcessorobject that removes allProofErrelements from theWordprocessingMLPackagedocument.static PreProcessorReturns aPreProcessorobject that removes comments information that is not conforming to the expected patterns.
-
Method Details
-
mergeSimilarRuns
Returns aPreProcessorobject that merges same style runs that are next to each other in aWordprocessingMLPackagedocument.- Returns:
- a
PreProcessorobject that merges similar runs.
-
removeLanguageProof
Returns aPreProcessorobject that removes allProofErrelements from theWordprocessingMLPackagedocument.- Returns:
- a
PreProcessorobject that removesProofErrelements.
-
removeLanguageInfo
Returns aPreProcessorobject that removes all language informations such as grammatical and orthographics markers in aWordprocessingMLPackagedocument.- Returns:
- a
PreProcessorobject that removes language markers.
-
removeMalformedComments
Returns aPreProcessorobject that removes comments information that is not conforming to the expected patterns.- Returns:
- a
PreProcessorobject that removes malformed comments markers.
-
preparePlaceholders
Returns aPreProcessorobject that prepares inline placeholders introduced by the given opening delimiter. The matching closing brace is found by brace balancing, so expressions may nest braces freely (for instance a SpEL inline list or map).- Parameters:
opening- the literal opening delimiter of a placeholder, for instance${or#{. It must end with an opening brace.element- the name of the smart tag type to wrap matching placeholders with.- Returns:
- a
PreProcessorobject that prepares inline placeholders. - See Also:
-
prepareCommentProcessor
Returns aPreProcessorobject that prepares comment processors for use with the stamper.- Returns:
- a
PreProcessorobject that prepares comment processors.
-