示例#1
0
        public IObjectProcessor ProcessorForObject(string anObject, string style = "")
        {
            IObjectProcessor processor = (ObjectProcessors.Where(m => m.Name == anObject)).FirstOrDefault();

            if (processor == null)
            {
                processor = new DumbObjectProcessor();
            }
            return(processor);
        }
示例#2
0
        public string processObject(XElement item, string processor, object options = null)
        {
            IObjectProcessor objectProcessor = ProcessorForObject(processor, "");

            return(objectProcessor.ProcessObject(item, options));
        }