Class SimplificationFilter
- java.lang.Object
-
- net.sf.okapi.lib.preprocessing.filters.common.PreprocessingFilter
-
- net.sf.okapi.lib.preprocessing.filters.simplification.SimplificationFilter
-
- All Implemented Interfaces:
AutoCloseable,Iterator<Event>,IFilter
public class SimplificationFilter extends PreprocessingFilter
-
-
Field Summary
-
Fields inherited from interface net.sf.okapi.common.filters.IFilter
SUB_FILTER
-
-
Constructor Summary
Constructors Constructor Description SimplificationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FilterConfiguration>getConfigurations()Gets the list of all predefined configurations for this filter.StringgetDisplayName()Gets the localizable display name of this filter.StringgetName()Gets the name/identifier of this filter.ParametersgetParameters()Gets the current parameters for this filter.voidopen(RawDocument input, boolean generateSkeleton)Opens the input document described in a give RawDocument object, and optionally creates skeleton information.voidsetFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)Sets the filter configuration mapper for this filter.voidsetParameters(IParameters params)Sets new parameters for this filter.-
Methods inherited from class net.sf.okapi.lib.preprocessing.filters.common.PreprocessingFilter
cancel, close, createFilterWriter, createSkeletonWriter, getEncoderManager, getFilter, getMimeType, getSteps, hasNext, next, open, setFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IFilterGets the name/identifier of this filter.- Specified by:
getNamein interfaceIFilter- Overrides:
getNamein classPreprocessingFilter- Returns:
- The name/identifier of the filter.
-
getDisplayName
public String getDisplayName()
Description copied from interface:IFilterGets the localizable display name of this filter.- Specified by:
getDisplayNamein interfaceIFilter- Overrides:
getDisplayNamein classPreprocessingFilter- Returns:
- the localizable display name of this filter.
-
getConfigurations
public List<FilterConfiguration> getConfigurations()
Description copied from interface:IFilterGets the list of all predefined configurations for this filter.- Specified by:
getConfigurationsin interfaceIFilter- Overrides:
getConfigurationsin classPreprocessingFilter- Returns:
- a list of the all predefined configurations for this filter.
-
getParameters
public Parameters getParameters()
Description copied from interface:IFilterGets the current parameters for this filter.- Specified by:
getParametersin interfaceIFilter- Overrides:
getParametersin classPreprocessingFilter- Returns:
- The current parameters for this filter, or null if this filter has no parameters.
-
setParameters
public void setParameters(IParameters params)
Description copied from interface:IFilterSets new parameters for this filter.- Specified by:
setParametersin interfaceIFilter- Overrides:
setParametersin classPreprocessingFilter- Parameters:
params- The new parameters to use.
-
setFilterConfigurationMapper
public void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
Description copied from interface:IFilterSets the filter configuration mapper for this filter. This object is used by this filter if it needs to instantiate sub-filters. The implementations of IFilter that do not use sub-filters can use an empty stub for this method.- Specified by:
setFilterConfigurationMapperin interfaceIFilter- Overrides:
setFilterConfigurationMapperin classPreprocessingFilter- Parameters:
fcMapper- the mapper to set.
-
open
public void open(RawDocument input, boolean generateSkeleton)
Description copied from interface:IFilterOpens the input document described in a give RawDocument object, and optionally creates skeleton information.- Specified by:
openin interfaceIFilter- Overrides:
openin classPreprocessingFilter- Parameters:
input- The RawDocument object to use to open the document.generateSkeleton- true to generate the skeleton data, false otherwise.
-
-