C# Class SIL.FieldWorks.FDO.FDOTests.InterlinearTestBase.ParagraphAnnotator

This class allows annotating wordforms in a paragraph.
Afficher le fichier Open project: sillsdev/FieldWorks

Protected Properties

Свойство Type Description
m_cache FdoCache
m_fNeedReparseParagraph bool
m_para IStTxtPara

Private Properties

Свойство Type Description
CreateWfiAnalysisForAnalysis IWfiAnalysis
FindOrCreateWfiAnalysis IWfiAnalysis
GetAnalysis IAnalysis
GetBaselineText ITsString
GetRealWordformInfo void
GetSegment ISegment
GetSegmentHvo int
SetAlternateCase IWfiWordform
SetAnalysis void
SetDefaultWordGloss IWfiGloss
SetDefaultWordGloss IWfiGloss
SetDefaultWordGloss IWfiGloss

Méthodes publiques

Méthode Description
BreakIntoMorphs ( int iSegment, int iSegForm, ArrayList moForms ) : IWfiAnalysis

Creates a new analysis with the given MoForms belonging to the wordform currently at the given position and inserts it into the segment's analysis in place of the wordform.

ParagraphAnnotator ( IStTxtPara para ) : System
ReparseParagraph ( ) : void
SetAlternateCase ( int iSegment, int iSegForm, StringCaseStatus targetState, string &alternateCaseForm ) : IWfiWordform
SetDefaultFreeTranslation ( int iSegment, ITsString &tssComment ) : void

Make up a phony Free Translation for the segment.

SetDefaultLiteralTranslation ( int iSegment, ITsString &tssComment ) : void

Make up a phony Literal Translation for the segment.

SetDefaultNote ( int iSegment, ITsString &tssComment ) : void

Make up a phony Note for the segment.

SetMorphSense ( int iSegment, int iSegForm, int iMorphBundle, ILexSense sense ) : IWfiMorphBundle
SetVariantOf ( int iSegment, int iSegForm, ILexEntry leMain, ILexEntryType variantType ) : ILexEntryRef

create a variant and link it to the given leMain entry and confirm this analysis on the given (monomorphemic) cba.

Méthodes protégées

Méthode Description
BreakPhrase ( int iSegment, int iSegForm ) : void
MergeAdjacentAnnotations ( int iSegment, int iSegForm ) : int
SetMorphBundle ( IAnalysis analysis, int iMorphBundle, ILexSense sense ) : IWfiMorphBundle
SetupDefaultWordGlosses ( ) : IList

Walk through the paragraph and create word glosses (formatted: wordform.segNum.segFormNum) and segment annotations.

Private Methods

Méthode Description
CreateWfiAnalysisForAnalysis ( IAnalysis actualAnalysis ) : IWfiAnalysis
FindOrCreateWfiAnalysis ( IAnalysis analysisActual ) : IWfiAnalysis

Finds an existing wfiAnalysis related to the given cba.InstanceOf. If none exists, we'll create one.

GetAnalysis ( int iSegment, int iAnalysis ) : IAnalysis
GetBaselineText ( int iSegment, int iSegForm ) : ITsString
GetRealWordformInfo ( IAnalysis actualAnalysis, int &hvoActualInstanceOf, IWfiWordform &realWordform ) : void
GetSegment ( int iSegment ) : ISegment
GetSegmentHvo ( int iSegment ) : int
SetAlternateCase ( string wordform, int iOccurrenceInParagraph, StringCaseStatus targetState ) : IWfiWordform
SetAnalysis ( int iSegment, int iSegForm, IAnalysis newGloss ) : void

Set the analysis at the specified segment, index. Enhance JohnT: may need it to fill in prior segments and/or annotations.

SetDefaultWordGloss ( int iSegment, int iSegForm, IWfiAnalysis actualWfiAnalysis, string &gloss ) : IWfiGloss
SetDefaultWordGloss ( int iSegment, int iSegForm, string &gloss ) : IWfiGloss
SetDefaultWordGloss ( string wordform, int iOccurrenceInParagraph ) : IWfiGloss

Method Details

BreakIntoMorphs() public méthode

Creates a new analysis with the given MoForms belonging to the wordform currently at the given position and inserts it into the segment's analysis in place of the wordform.
public BreakIntoMorphs ( int iSegment, int iSegForm, ArrayList moForms ) : IWfiAnalysis
iSegment int
iSegForm int
moForms System.Collections.ArrayList
Résultat IWfiAnalysis

BreakPhrase() protected méthode

protected BreakPhrase ( int iSegment, int iSegForm ) : void
iSegment int
iSegForm int
Résultat void

MergeAdjacentAnnotations() protected méthode

protected MergeAdjacentAnnotations ( int iSegment, int iSegForm ) : int
iSegment int
iSegForm int
Résultat int

ParagraphAnnotator() public méthode

public ParagraphAnnotator ( IStTxtPara para ) : System
para IStTxtPara
Résultat System

ReparseParagraph() public méthode

public ReparseParagraph ( ) : void
Résultat void

SetAlternateCase() public méthode

public SetAlternateCase ( int iSegment, int iSegForm, StringCaseStatus targetState, string &alternateCaseForm ) : IWfiWordform
iSegment int
iSegForm int
targetState StringCaseStatus
alternateCaseForm string
Résultat IWfiWordform

SetDefaultFreeTranslation() public méthode

Make up a phony Free Translation for the segment.
public SetDefaultFreeTranslation ( int iSegment, ITsString &tssComment ) : void
iSegment int
tssComment ITsString
Résultat void

SetDefaultLiteralTranslation() public méthode

Make up a phony Literal Translation for the segment.
public SetDefaultLiteralTranslation ( int iSegment, ITsString &tssComment ) : void
iSegment int
tssComment ITsString
Résultat void

SetDefaultNote() public méthode

Make up a phony Note for the segment.
public SetDefaultNote ( int iSegment, ITsString &tssComment ) : void
iSegment int
tssComment ITsString
Résultat void

SetMorphBundle() protected méthode

protected SetMorphBundle ( IAnalysis analysis, int iMorphBundle, ILexSense sense ) : IWfiMorphBundle
analysis IAnalysis
iMorphBundle int
sense ILexSense
Résultat IWfiMorphBundle

SetMorphSense() public méthode

public SetMorphSense ( int iSegment, int iSegForm, int iMorphBundle, ILexSense sense ) : IWfiMorphBundle
iSegment int
iSegForm int
iMorphBundle int
sense ILexSense
Résultat IWfiMorphBundle

SetVariantOf() public méthode

create a variant and link it to the given leMain entry and confirm this analysis on the given (monomorphemic) cba.
public SetVariantOf ( int iSegment, int iSegForm, ILexEntry leMain, ILexEntryType variantType ) : ILexEntryRef
iSegment int
iSegForm int
leMain ILexEntry
variantType ILexEntryType
Résultat ILexEntryRef

SetupDefaultWordGlosses() protected méthode

Walk through the paragraph and create word glosses (formatted: wordform.segNum.segFormNum) and segment annotations.
protected SetupDefaultWordGlosses ( ) : IList
Résultat IList

Property Details

m_cache protected_oe property

protected FdoCache m_cache
Résultat FdoCache

m_fNeedReparseParagraph protected_oe property

protected bool m_fNeedReparseParagraph
Résultat bool

m_para protected_oe property

protected IStTxtPara m_para
Résultat IStTxtPara