public void setProp(string aProperty, object aValue) { int featureIndex = aProperty.IndexOf('.'); if ((featureIndex != -1)) { string featurePath = aProperty.Substring(0, featureIndex); string featureProperty = aProperty.Substring((featureIndex + 1)); if ((featurePath == "PhraseFeature")) { PhraseFeature.setProp(featureProperty, aValue); } } }
public Articy.Unity.Interfaces.ScriptDataProxy getProp(string aProperty) { int featureIndex = aProperty.IndexOf('.'); if ((featureIndex != -1)) { string featurePath = aProperty.Substring(0, featureIndex); string featureProperty = aProperty.Substring((featureIndex + 1)); if ((featurePath == "PhraseFeature")) { return(PhraseFeature.getProp(featureProperty)); } } return(null); }
public QuoteHeaderLinesParser(int headerLinesCount, int multiLineHeaderLinesCount, IList <string> keyPhrases) { _headerLinesCount = headerLinesCount; _multiLineHeaderLinesCount = multiLineHeaderLinesCount; _keyPhrases = keyPhrases; _phraseFeature = new PhraseFeature(keyPhrases); _featureSet = new AbstractQuoteFeature[] { new DateFeature(), new TimeFeature(), new EmailFeature(), new LastColonFeature(), }; _maxFeatureCount = _featureSet.Length; _sufficientFeatureCount = 2; }
private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Test.Templates.PhraseDialogueFragmentTemplate newClone = ((Articy.Test.Templates.PhraseDialogueFragmentTemplate)(aClone)); if ((PhraseFeature != null)) { newClone.PhraseFeature = ((Articy.Test.Features.PhraseFeatureFeature)(PhraseFeature.CloneObject(newClone, aFirstClassParent))); } newClone.OwnerId = OwnerId; }