Package org.omegat.convert.v20to21.data
Class TextOptions
- java.lang.Object
-
- org.omegat.convert.v20to21.data.TextOptions
-
- All Implemented Interfaces:
java.io.Serializable
public class TextOptions extends java.lang.Object implements java.io.SerializableOptions for Text filter. Serializable to allow saving to / reading from configuration file.Text filter would have the following options ([+] means default on). Segment text into paragraphs on:
- [] Line breaks
- [+] Empty lines (double line break)
- [] Never
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSEGMENT_BREAKSText filter should segmentOn text into paragraphs on line breaks.static intSEGMENT_EMPTYLINESDefult.static intSEGMENT_NEVERText filter should not segmentOn text into paragraphs.
-
Constructor Summary
Constructors Constructor Description TextOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSegmentOn()Returns when Text filter should segmentOn text into paragraphs.voidsetSegmentOn(int segmentOn)Sets when Text filter should segmentOn text into paragraphs.
-
-
-
Field Detail
-
SEGMENT_BREAKS
public static final int SEGMENT_BREAKS
Text filter should segmentOn text into paragraphs on line breaks.- See Also:
- Constant Field Values
-
SEGMENT_EMPTYLINES
public static final int SEGMENT_EMPTYLINES
Defult. Text filter should segmentOn text into paragraphs on empty lines.- See Also:
- Constant Field Values
-
SEGMENT_NEVER
public static final int SEGMENT_NEVER
Text filter should not segmentOn text into paragraphs.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSegmentOn
public int getSegmentOn()
Returns when Text filter should segmentOn text into paragraphs.- Returns:
- One of
SEGMENT_BREAKS,SEGMENT_EMPTYLINES,SEGMENT_NEVER.
-
setSegmentOn
public void setSegmentOn(int segmentOn)
Sets when Text filter should segmentOn text into paragraphs.- Parameters:
segmentOn- One ofSEGMENT_BREAKS,SEGMENT_EMPTYLINES,SEGMENT_NEVER.
-
-