C# 클래스 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.
상속: IAdapter
파일 보기 프로젝트 열기: acrolinx/acrolinx-sidebar-demo-dotnet

Private Properties

프로퍼티 타입 설명
DecodeIfRequried string
DecodedLength int
EncodeIfRequried string
ToRawRange IRange

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateXElement() 공개 메소드

public CreateXElement ( ) : System.Xml.Linq.XElement
리턴 System.Xml.Linq.XElement

Extract() 공개 메소드

public Extract ( System.Text.Format format ) : string
format System.Text.Format
리턴 string

ExtractRaw() 보호된 추상적인 메소드

protected abstract ExtractRaw ( ) : string
리턴 string

ReplaceRanges() 공개 메소드

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

ReplaceRawRange() 보호된 메소드

protected ReplaceRawRange ( IRange range, string replacement, System.Text.Format format ) : void
range IRange
replacement string
format System.Text.Format
리턴 void

SelectRanges() 공개 메소드

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

SelectRawRange() 보호된 메소드

protected SelectRawRange ( IRange range, System.Text.Format format ) : void
range IRange
format System.Text.Format
리턴 void

UniversalAdapter() 공개 메소드

public UniversalAdapter ( string tagName, bool encodeContent ) : System
tagName string
encodeContent bool
리턴 System

XmlDecode() 보호된 메소드

protected XmlDecode ( string xml ) : string
xml string
리턴 string

XmlEncode() 보호된 메소드

protected XmlEncode ( string text ) : string
text string
리턴 string