C# Class Importer.RtfDeltaImporter.Document

A document, consisting of a set of paragraphs
Mostrar archivo Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Public Properties

Property Type Description
Paragraphs Paragraph>.Dictionary

Public Methods

Method Description
AddParagraph ( Paragraph paragraph ) : void

Adds a paragraph in the document

Document ( string filePath ) : System.Collections.Generic

Constructor

UpdateState ( Document original ) : void

Updates the state of the paragraphs located in source according to the original content, located in original

Private Methods

Method Description
FindParagraph ( string id ) : Paragraph

Finds a paragraph whose Id corresponds to the Id provided

IsChanged ( Paragraph p ) : bool

Paragraph contents has changed

IsDeleted ( Paragraph p ) : bool

Paragraph has been deleted

IsInserted ( Paragraph p ) : bool

Paragraph has been inserted

IsMoved ( Paragraph p ) : bool

Paragraph has been moved

findMatching ( ParagraphCondition condition ) : List

Find all paragraphs which match the predicate condition

Method Details

AddParagraph() public method

Adds a paragraph in the document
public AddParagraph ( Paragraph paragraph ) : void
paragraph Paragraph
return void

Document() public method

Constructor
public Document ( string filePath ) : System.Collections.Generic
filePath string
return System.Collections.Generic

UpdateState() public method

Updates the state of the paragraphs located in source according to the original content, located in original
public UpdateState ( Document original ) : void
original Document The original file content
return void

Property Details

Paragraphs public_oe property

Stores the paragraphs found in the document
public Dictionary Paragraphs
return Paragraph>.Dictionary