org.exoplatform.social.common.xmlprocessor
Class XMLProcessorImpl

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

public class XMLProcessorImpl
extends Object
implements XMLProcessor

Implementation of XMLProcessor.

Author:
Ly Minh Phuong - http://phuonglm.net

Constructor Summary
XMLProcessorImpl()
          Constructor
 
Method Summary
 void addFilter(Filter filter)
          Adds a defined filter to this processor.
 void addFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
          Adds a defined filter component plugin to this processor.
 Object process(Object input)
          Processes an input object though filter chains.
 void removeFilter(Class className)
          
 void removeFilter(Filter addedFilter)
          Removes a defined filter which is added.
 void removeFilterPlugin(BaseXMLFilterPlugin filterComponentPlugin)
          Removes the existing filter component plugin from this processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLProcessorImpl

public XMLProcessorImpl()
Constructor

Method Detail

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.

removeFilter

public void removeFilter(Class className)


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.


Copyright © 2013 eXo Platform SAS. All Rights Reserved.