Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.steps.textmodification.Parameters
-
- All Implemented Interfaces:
Cloneable
,IParameters
public class Parameters extends StringParameters
-
-
Field Summary
Fields Modifier and Type Field Description static int
SCRIPT_ARABIC
static int
SCRIPT_CHINESE
static int
SCRIPT_CYRILLIC
static int
SCRIPT_EXT_LATIN
static int
TYPE_EXTREPLACE
static int
TYPE_KEEPINLINE
static int
TYPE_KEEPORIGINAL
static int
TYPE_XNREPLACE
-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAddID()
boolean
getAddName()
boolean
getAddPrefix()
boolean
getAddSuffix()
boolean
getApplyToBlankEntries()
boolean
getApplyToExistingTarget()
boolean
getExpand()
boolean
getMarkSegments()
String
getPrefix()
int
getScript()
String
getSuffix()
int
getType()
void
reset()
Reset this parameters object to its default values.void
setAddID(boolean addID)
void
setAddName(boolean addName)
void
setAddPrefix(boolean addPrefix)
void
setAddSuffix(boolean addSuffix)
void
setApplyToBlankEntries(boolean applyToBlankEntries)
void
setApplyToExistingTarget(boolean applyToExistingTarget)
void
setExpand(boolean expand)
void
setMarkSegments(boolean markSegments)
void
setPrefix(String prefix)
void
setScript(int script)
void
setSuffix(String suffix)
void
setType(int type)
-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
Methods inherited from class net.sf.okapi.common.BaseParameters
getParametersDescription, getPath, load, load, save, setPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.IParameters
copy
-
-
-
-
Field Detail
-
TYPE_KEEPORIGINAL
public static final int TYPE_KEEPORIGINAL
- See Also:
- Constant Field Values
-
TYPE_XNREPLACE
public static final int TYPE_XNREPLACE
- See Also:
- Constant Field Values
-
TYPE_KEEPINLINE
public static final int TYPE_KEEPINLINE
- See Also:
- Constant Field Values
-
TYPE_EXTREPLACE
public static final int TYPE_EXTREPLACE
- See Also:
- Constant Field Values
-
SCRIPT_EXT_LATIN
public static final int SCRIPT_EXT_LATIN
- See Also:
- Constant Field Values
-
SCRIPT_CYRILLIC
public static final int SCRIPT_CYRILLIC
- See Also:
- Constant Field Values
-
SCRIPT_ARABIC
public static final int SCRIPT_ARABIC
- See Also:
- Constant Field Values
-
SCRIPT_CHINESE
public static final int SCRIPT_CHINESE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public int getType()
-
setType
public void setType(int type)
-
getAddPrefix
public boolean getAddPrefix()
-
setAddPrefix
public void setAddPrefix(boolean addPrefix)
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
-
getAddSuffix
public boolean getAddSuffix()
-
setAddSuffix
public void setAddSuffix(boolean addSuffix)
-
getSuffix
public String getSuffix()
-
setSuffix
public void setSuffix(String suffix)
-
getApplyToExistingTarget
public boolean getApplyToExistingTarget()
-
setApplyToExistingTarget
public void setApplyToExistingTarget(boolean applyToExistingTarget)
-
getAddName
public boolean getAddName()
-
setAddName
public void setAddName(boolean addName)
-
getAddID
public boolean getAddID()
-
setAddID
public void setAddID(boolean addID)
-
getMarkSegments
public boolean getMarkSegments()
-
setMarkSegments
public void setMarkSegments(boolean markSegments)
-
getApplyToBlankEntries
public boolean getApplyToBlankEntries()
-
setApplyToBlankEntries
public void setApplyToBlankEntries(boolean applyToBlankEntries)
-
getExpand
public boolean getExpand()
-
setExpand
public void setExpand(boolean expand)
-
getScript
public int getScript()
-
setScript
public void setScript(int script)
-
reset
public void reset()
Description copied from class:StringParameters
Reset this parameters object to its default values.Subclasses should override this method to set any initial values and instantiate any objects that require allocation. It is recommended that subclasses also call
super.reset()
in the override to ensure that the buffer is empty.- Specified by:
reset
in interfaceIParameters
- Overrides:
reset
in classStringParameters
-
-