Interface INativeSubContentGenerator
Manages the Writer used to create the native file as well as a set
of INative
The input is received on the Input content handler.
Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public interface INativeSubContentGenerator
Remarks
Used with other components in a IFile
Properties
ContentProcessors
The content processors that act on the input content before it is passed to the writer, in the order in which they will be invoked.
Use Add
Declaration
IEnumerable<INativeGenerationContentProcessor> ContentProcessors { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INative |
Remarks
Used with other components in a IFile
Input
This is the content handler that is used to drive the native file writer with its content processors.
Declaration
INativeGenerationContentHandler Input { get; }
Property Value
Type | Description |
---|---|
INative |
Remarks
Usually, it is the first content processor, or the actual file writer instance if no content processors exist.
If no content processors or file writer have been defined, this property
may be null
.
Writer
The file writer that creates the final output.
Declaration
INativeFileWriter Writer { get; set; }
Property Value
Type | Description |
---|---|
INative |
Remarks
This property can be null
, in which case content will still
be processed, but no output should be generated.
Methods
AddProcessor(INativeGenerationContentProcessor)
Appends a native processor that will be invoked before the writer.
Declaration
void AddProcessor(INativeGenerationContentProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
INative |
processor |
Remarks
Used with other components in a IFile
InsertProcessor(Int32, INativeGenerationContentProcessor)
Inserts a native processor at the specified index in the list of native processors.
Declaration
void InsertProcessor(int index, INativeGenerationContentProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | |
INative |
processor |
Remarks
Used with other components in a IFile
RemoveProcessor(INativeGenerationContentProcessor)
Removes a native processor from the list.
Declaration
bool RemoveProcessor(INativeGenerationContentProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
INative |
processor |
Returns
Type | Description |
---|---|
Boolean |
Remarks
Used with other components in a IFile