public abstract class AbstractLineFilter extends AbstractBaseFilter
| Modifier and Type | Field and Description |
|---|---|
protected RawDocument |
input |
static String |
LINE_NUMBER |
protected LocaleId |
srcLang |
protected StartDocument |
startDoc |
protected LocaleId |
trgLang |
SUB_FILTER| Constructor and Description |
|---|
AbstractLineFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLineBreak() |
void |
cancel() |
void |
close() |
protected TextProcessingResult |
component_exec(TextContainer lineContainer)
Called by the filter for every line read from the input
|
protected void |
component_idle(boolean lastChance)
Called by the filter when there are no input lines (the input has been read).
|
protected void |
component_init() |
IFilterWriter |
createFilterWriter() |
ISkeletonWriter |
createSkeletonWriter() |
protected GenericSkeleton |
getActiveSkeleton() |
IFilterWriter |
getFilterWriter() |
protected DocumentPart |
getFirstDocumentPart() |
protected ITextUnit |
getFirstTextUnit() |
protected GenericSkeleton |
getHeadSkeleton() |
protected String |
getLineBreak() |
protected int |
getQueueSize() |
protected LocaleId |
getTargetLocale() |
boolean |
hasNext() |
boolean |
isMultilingual() |
Event |
next() |
boolean |
notify(String notification,
Object info) |
void |
open(RawDocument input) |
void |
open(RawDocument input,
boolean generateSkeleton) |
protected boolean |
sendEvent(EventType eventType,
IResource res) |
protected boolean |
sendEvent(int index,
EventType eventType,
IResource res) |
void |
setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper) |
void |
setFilterWriter(IFilterWriter filterWriter) |
protected void |
setMultilingual(boolean multilingual) |
addConfiguration, addConfiguration, addConfigurations, findConfiguration, getConfigurations, getDisplayName, getEncoderManager, getMimeType, removeConfiguration, setConfiguration, setDisplayName, setMimeTypecomponent_done, getParameters, getParameters, getParametersClassName, setParametersexec, getDescription, getName, setDescription, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getParameters, setParameterspublic static final String LINE_NUMBER
protected LocaleId srcLang
protected LocaleId trgLang
protected StartDocument startDoc
protected RawDocument input
public void cancel()
public final void close()
public void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
setFilterConfigurationMapper in interface IFiltersetFilterConfigurationMapper in class AbstractBaseFilterpublic IFilterWriter createFilterWriter()
public ISkeletonWriter createSkeletonWriter()
public IFilterWriter getFilterWriter()
public void setFilterWriter(IFilterWriter filterWriter)
protected void setMultilingual(boolean multilingual)
public boolean isMultilingual()
protected void component_init()
component_init in class OkapiComponentprotected TextProcessingResult component_exec(TextContainer lineContainer)
lineContainer - protected void component_idle(boolean lastChance)
lastChance - True if there are no events in the queue, and if the method will not produce events, the filter will be finished.public boolean hasNext()
public void open(RawDocument input)
public void open(RawDocument input, boolean generateSkeleton)
protected ITextUnit getFirstTextUnit()
protected DocumentPart getFirstDocumentPart()
protected LocaleId getTargetLocale()
public Event next()
protected final GenericSkeleton getActiveSkeleton()
protected final GenericSkeleton getHeadSkeleton()
protected final int getQueueSize()
protected final boolean sendEvent(int index,
EventType eventType,
IResource res)
index - eventType - res - protected final String getLineBreak()
protected final void addLineBreak()
Copyright © 2019. All rights reserved.