C# Class Acrolinx.Sdk.Sidebar.Util.Adapter.UniversalAdapter

UniversalAdapter provides functionality to adjust offsets based on actions performed by the sidebar and the user. It can be used for XML as well as plain text.
Inheritance: IAdapter
Afficher le fichier Open project: acrolinx/acrolinx-sidebar-demo-dotnet

Private Properties

Свойство Type Description
DecodeIfRequried string
DecodedLength int
EncodeIfRequried string
ToRawRange IRange

Méthodes publiques

Méthode Description
CreateXElement ( ) : System.Xml.Linq.XElement
Extract ( System.Text.Format format ) : string
ReplaceRanges ( IReadOnlyList matches, DocumentModel model, System.Text.Format format ) : void
SelectRanges ( IReadOnlyList matches, DocumentModel model, System.Text.Format format ) : void
UniversalAdapter ( string tagName, bool encodeContent ) : System

Méthodes protégées

Méthode Description
ExtractRaw ( ) : string
ReplaceRawRange ( IRange range, string replacement, System.Text.Format format ) : void
SelectRawRange ( IRange range, System.Text.Format format ) : void
XmlDecode ( string xml ) : string
XmlEncode ( string text ) : string

Private Methods

Méthode Description
DecodeIfRequried ( string text, System.Text.Format format ) : string
DecodedLength ( string text ) : int
EncodeIfRequried ( string text, System.Text.Format format ) : string
ToRawRange ( System.Text.Format format, string currentExtraction, IRange rangeWithTag, bool silent ) : IRange

Method Details

CreateXElement() public méthode

public CreateXElement ( ) : System.Xml.Linq.XElement
Résultat System.Xml.Linq.XElement

Extract() public méthode

public Extract ( System.Text.Format format ) : string
format System.Text.Format
Résultat string

ExtractRaw() protected abstract méthode

protected abstract ExtractRaw ( ) : string
Résultat string

ReplaceRanges() public méthode

public ReplaceRanges ( IReadOnlyList matches, DocumentModel model, System.Text.Format format ) : void
matches IReadOnlyList
model Acrolinx.Sdk.Sidebar.Util.Changetracking.DocumentModel
format System.Text.Format
Résultat void

ReplaceRawRange() protected méthode

protected ReplaceRawRange ( IRange range, string replacement, System.Text.Format format ) : void
range IRange
replacement string
format System.Text.Format
Résultat void

SelectRanges() public méthode

public SelectRanges ( IReadOnlyList matches, DocumentModel model, System.Text.Format format ) : void
matches IReadOnlyList
model Acrolinx.Sdk.Sidebar.Util.Changetracking.DocumentModel
format System.Text.Format
Résultat void

SelectRawRange() protected méthode

protected SelectRawRange ( IRange range, System.Text.Format format ) : void
range IRange
format System.Text.Format
Résultat void

UniversalAdapter() public méthode

public UniversalAdapter ( string tagName, bool encodeContent ) : System
tagName string
encodeContent bool
Résultat System

XmlDecode() protected méthode

protected XmlDecode ( string xml ) : string
xml string
Résultat string

XmlEncode() protected méthode

protected XmlEncode ( string text ) : string
text string
Résultat string