Click or drag to resize
RegExFilePostTweaker Class
An implementation of a File Post Tweaker that uses RegEx matches and replaces values to specify the processing action that should be performed on a file.
Inheritance Hierarchy
SystemObject
  Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApiAbstractFilePostTweaker
    Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApiRegExFilePostTweaker

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public class RegExFilePostTweaker : AbstractFilePostTweaker

The RegExFilePostTweaker type exposes the following members.

Constructors
  NameDescription
Public methodRegExFilePostTweaker
Default constructor. If the object is created with this constructor, then ReplaceInfo should be set.
Public methodRegExFilePostTweaker(ListString, ListString)
Constructor that takes two ordered lists of strings that contain the match and replace values to apply to the file. The first item in the list of matches will be replaced by the first item in the list of replacements, and so on.
Public methodRegExFilePostTweaker(String, String)
Simple constructor that can be used when there is only a single match/replace to be performed on the native file.
Top
Properties
  NameDescription
Public propertyEnabled
Controls whether the tweaker is run during parsing. Default is true.
(Inherited from AbstractFilePostTweaker.)
Public propertyMessageReporter
The default implementation stores the message reporter in a field.
(Inherited from AbstractFilePostTweaker.)
Protected propertyName
The property contains a name for the file tweaker that can be overridden in derived classes. This name is used in error messages.
(Inherited from AbstractFilePostTweaker.)
Public propertyReplaceInfo
The list of RegEx match and replace values. These values will be used during either the Tweak or UnTweak processes depending on whether the FileTweaker is added to the Extractor or to the Generator.
Public propertyRequireValidEncoding
This property governs whether the File Tweaker requires encoding information before it will tweak a file. This may be needed to ensure that the file the tweaker uses the correct encoding.
(Inherited from AbstractFilePostTweaker.)
Top
Methods
  NameDescription
Protected methodTweak
VisitListElement that is overridden to provide an implementations of the Tweaking
(Overrides AbstractFilePostTweakerTweak(INativeOutputFileProperties).)
Public methodTweakFilePostWriting
Default implementation of the INativeFileTweaker.TweakFilePostWriting method that calls Tweak. Derived classes should normally override the Tweak method instead.
(Inherited from AbstractFilePostTweaker.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments