Click or drag to resize
IPersistentFileConversionProperties Interface

File-level properties that are guaranteed to be preserved (if necessary persisted to an intermediate bilingual file format) during different stages of the content processing lifecycle; passed to native content processors, parsers and writers that implement INativeContentCycleAware.

Components can set these properties during parsing, and they will be made available when generating the translated output, or during any other operation used to process content.

Custom properties can be stored as metadata key/value pairs through the IMetaDataContainer implementation. It is recommended that keys are prefixed with a value that is likely to be unique in order to avoid conflicts with unrelated components.

Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public interface IPersistentFileConversionProperties : IMetaDataContainer, 
	ICloneable

The IPersistentFileConversionProperties type exposes the following members.

Properties
  NameDescription
Public propertyCreationDate
The time of the original conversion
Public propertyCreationTool
The name of the tool used for the conversion
Public propertyCreationToolVersion
The version number of the tool used for the conversion
Public propertyDependencyFiles

The dependency files used or created while parsing.

Public propertyFileId
Unique identifier for this file; can be used to unambigously identify the file in a bilingual document with multiple files.
Public propertyFileSnifferInfo
Properties determined during successful identification of this file type
Public propertyFileTypeDefinitionId
The unique identifier for the file type definition used in this conversion.
Public propertyHasMetaData
True if there is any metadata in the container
(Inherited from IMetaDataContainer.)
Public propertyInputFilePath

Full path to the file that should be used as source for the parser.

Public propertyItem

Convenience getter and setter for metadata using indexer syntax.

The getter functionality is equivalent to calling SetMetaData(String, String), and setter functionality is equivalent to GetMetaData(String).

Public propertyMetaData
Enumerator for the metadata key/value pairs.
(Inherited from IMetaDataContainer.)
Public propertyMetaDataCount
The number of meta data key/value pairs in the container
(Inherited from IMetaDataContainer.)
Public propertyOriginalEncoding
The original encoding of the native source language file from which the content originates
Public propertyOriginalFilePath
Full path name to the native file the content originates from.
Public propertyPreferredTargetEncoding
If set, indicates the preferred codepage that the target language file should be in. You can test the IsValid property of the returned codepage to find out if it has been set. This property can be used during editing to warn the user when they try to use characters in the translation that are not supported by the given codepage. If this property is set when writing the target language version of the file, it may be used by the native file writer (though it is ultimately up to the file writer to decide).
Public propertySourceLanguage
Original source language of the content
Public propertyTargetLanguage
Target language into which the content is being translated into.
Top
Methods
  NameDescription
Public methodClearMetaData
Removes all key/value pairs from the meta data collection.
(Inherited from IMetaDataContainer.)
Public methodClone
Creates a new object that is a copy of the current instance.
(Inherited from ICloneable.)
Public methodGetMetaData
Returns the metadata value associated with the specified key, or null if no such key exists in the collection.
(Inherited from IMetaDataContainer.)
Public methodMetaDataContainsKey
True if a metadata value with the specified key exists
(Inherited from IMetaDataContainer.)
Public methodRemoveMetaData
Removes the metadata key/value pair with the specified key from the collection. No changes are made if the collection does not contain such a key.
(Inherited from IMetaDataContainer.)
Public methodSetMetaData

Sets the value of the specified metadata key.

If the key already exists in the collection, its value gets overwritten.

(Inherited from IMetaDataContainer.)
Top
Remarks

Components can retrieve these properties by implementing INativeContentCycleAware. The framework calls SetFileProperties(IFileProperties) to pass the properties.

All metadata stored by SDL components use keys prefixed "SDL:".

Keys for a number of published file properties used by certain SDL components are defined in Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi.DefaultPersistentFilePropertiesKeys.

See Also
Community
Edit

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