SourceToTargetCopier Class |
Bilingual content processor that copies source content to the target for all localizable paragraph units.
Segments are handled specifically in this operation: if CopySegmentsAsEmpty is true, any content inside the segments is removed, and the segment properties are set to "not translated". Otherwise, the segment content from the source is duplicated, and the segment translation origin is set to "copied from source".
The HandleExistingTargetContent property (and the corresponding constructor parameter) determines how this processor handles situations in which content is already present in the target of the paragraph unit.
Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi
The SourceToTargetCopier type exposes the following members.
Name | Description | |
---|---|---|
SourceToTargetCopier |
The constructor parameter defines how any existing content target should be processed.
|
Name | Description | |
---|---|---|
CopySegmentsAsEmpty |
When content is copied from source to target, this setting determines if the content
of the segments should be copied, too.
| |
HandleExistingTargetContent |
Determines how any existing content in the target segment should be handled (if applicable).
| |
ItemFactory |
Default implementation of the ItemFactory property
(Inherited from AbstractBilingualFileTypeComponent.) | |
MessageReporter |
Accessor for the message reporter
(Inherited from AbstractBilingualFileTypeComponent.) | |
Output |
Default implementation is an accessor to a member
(Inherited from AbstractBilingualContentProcessor.) | |
PropertiesFactory |
Convenience accessor to the properties factory used by the
item factory.
(Inherited from AbstractBilingualFileTypeComponent.) |
Name | Description | |
---|---|---|
Complete |
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.) | |
CopySourceToTarget |
Helper used to copy source content of the paragraph to the target while using settings
specified for how to handle segments.
| |
Equals | (Inherited from Object.) | |
FileComplete |
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessParagraphUnit |
For localizable paragraph units, copy the source content into the target.
Any changed segments receive the status Source
if they contain a copy of the source, or NotTranslated if they
are copied as empty segments.
(Overrides AbstractBilingualContentProcessorProcessParagraphUnit(IParagraphUnit).) | |
ReportMessage(Object, String, ErrorLevel, String, String) |
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.) | |
ReportMessage(Object, String, ErrorLevel, String, TextLocation, TextLocation) |
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.) | |
ReportMessage(Object, String, ErrorLevel, String, String, ExtendedMessageEventData) |
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.) | |
ReportMessage(Object, String, ErrorLevel, String, TextLocation, TextLocation, ExtendedMessageEventData) |
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.) | |
SetFileProperties |
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |