Click or drag to resize
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.

Inheritance Hierarchy

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2508.0)
Syntax
public class SourceToTargetCopier : AbstractBilingualContentProcessor

The SourceToTargetCopier type exposes the following members.

Constructors
  NameDescription
Public methodSourceToTargetCopier
The constructor parameter defines how any existing content target should be processed.
Top
Properties
  NameDescription
Public propertyCopySegmentsAsEmpty
When content is copied from source to target, this setting determines if the content of the segments should be copied, too.
Public propertyHandleExistingTargetContent
Determines how any existing content in the target segment should be handled (if applicable).
Public propertyItemFactory
Default implementation of the ItemFactory property
(Inherited from AbstractBilingualFileTypeComponent.)
Public propertyMessageReporter
Accessor for the message reporter
(Inherited from AbstractBilingualFileTypeComponent.)
Public propertyOutput
Default implementation is an accessor to a member
(Inherited from AbstractBilingualContentProcessor.)
Public propertyPropertiesFactory
Convenience accessor to the properties factory used by the item factory.
(Inherited from AbstractBilingualFileTypeComponent.)
Top
Methods
  NameDescription
Public methodComplete
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.)
Protected methodCopySourceToTarget
Helper used to copy source content of the paragraph to the target while using settings specified for how to handle segments.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFileComplete
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcessParagraphUnit
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).)
Public methodReportMessage(Object, String, ErrorLevel, String, String)
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.)
Public methodReportMessage(Object, String, ErrorLevel, String, TextLocation, TextLocation)
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.)
Public methodReportMessage(Object, String, ErrorLevel, String, String, ExtendedMessageEventData)
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.)
Public methodReportMessage(Object, String, ErrorLevel, String, TextLocation, TextLocation, ExtendedMessageEventData)
Calls the corresponding method on the message reporter (if set).
(Inherited from AbstractBilingualFileTypeComponent.)
Public methodSetFileProperties
Calls the corresponding method on the Output.
(Inherited from AbstractBilingualContentProcessor.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

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