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 regex, String element) Returns aPreProcessorobject that prepares inline placeholders based on the provided regex and element name.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 based on the provided regex and element name.- Parameters:
regex- the regular expression used to identify placeholders in the documentelement- the name of the smart tag element to be used for the placeholders- Returns:
- a
PreProcessorobject that prepares inline placeholders.
-
prepareCommentProcessor
Returns aPreProcessorobject that prepares comment processors for use with the stamper.- Returns:
- a
PreProcessorobject that prepares comment processors.
-