Пример #1
0
        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);
                }
            }
        }
Пример #2
0
        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);
        }
Пример #3
0
        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;
        }
Пример #4
0
 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;
 }