コード例 #1
0
        private void SetupReplacerFilters()
        {
            if (_LocationOptions.IsSet(SearchReplaceLocationOptions.ReplaceAttributeValue))
            {
                _Processors.Add(new AttributeValueReplacer());
            }

            if (_LocationOptions.IsSet(SearchReplaceLocationOptions.ReplaceElementValue))
            {
                _Processors.Add(new ElementValueReplacer());
            }

            if (_LocationOptions.IsSet(SearchReplaceLocationOptions.ReplaceElementName))
            {
                _Processors.Add(new ElementNameReplacer());
            }

            if (_LocationOptions.IsSet(SearchReplaceLocationOptions.ReplaceAttributeName))
            {
                _Processors.Add(new AttributeNameReplacer());
            }

            if (_LocationOptions.IsSet(SearchReplaceLocationOptions.ReplaceValueOfElement))
            {
                _Processors.Add(new ValueOfElementReplacer());
            }

            if (_LocationOptions.IsSet(SearchReplaceLocationOptions.ReplaceValueOfAttribute))
            {
                _Processors.Add(new ValueOfAttributeReplacer());
            }
        }