Class XMLProcessorImpl

java.lang.Object
org.exoplatform.social.common.xmlprocessor.XMLProcessorImpl
All Implemented Interfaces:
XMLProcessor

public class XMLProcessorImpl extends Object implements XMLProcessor
Implementation of XMLProcessor.
  • Constructor Details

    • XMLProcessorImpl

      public XMLProcessorImpl()
      Constructor
  • Method Details

    • addFilter

      public void addFilter(Filter filter)
      Adds a defined filter to this processor.
      Specified by:
      addFilter in interface XMLProcessor
      Parameters:
      filter - a defined filter
    • removeFilter

      public void removeFilter(Filter addedFilter)
      Removes a defined filter which is added.
      Specified by:
      removeFilter in interface XMLProcessor
      Parameters:
      addedFilter - the added filter
    • addFilterPlugin

      public void addFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
      Adds a defined filter component plugin to this processor.
      Specified by:
      addFilterPlugin in interface XMLProcessor
      Parameters:
      filterComponentPlugin - the filter component plugin
    • removeFilterPlugin

      public void removeFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
      Removes the existing filter component plugin from this processor.
      Specified by:
      removeFilterPlugin in interface XMLProcessor
      Parameters:
      filterComponentPlugin - the existing filter component plugin.
    • process

      public Object process(Object input)
      Processes an input object though filter chains.
      Specified by:
      process in interface XMLProcessor
      Parameters:
      input - the input object
      Returns:
      new processed object by added filters.