Package net.sf.okapi.filters.xliff2
Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.filters.xliff2.Parameters
-
- All Implemented Interfaces:
IParameters,IEditorDescriptionProvider
public class Parameters extends StringParameters implements IEditorDescriptionProvider
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAXVALIDATIONstatic StringMERGE_AS_PARAGRAPHDeprecated.-
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 Deprecated Methods Modifier and Type Method Description EditorDescriptioncreateEditorDescription(ParametersDescription paramDesc)voidfromString(String data)Reset this parameters object to its default values and then load additional parameters from the provided data.InlineCodeFindergetCodeFinder()StringgetCodeFinderData()booleangetMaxValidation()booleangetMergeAsParagraph()Deprecated.booleangetNeedsSegmentation()ParametersDescriptiongetParametersDescription()Gets the description of the parameters.booleangetSimplifyTags()booleangetUseCodeFinder()voidreset()Reset this parameters object to its default values.voidsetCodeFinderData(String data)voidsetMaxValidation(boolean maxValidation)voidsetMergeAsParagraph(boolean mergeAsParagraph)Deprecated.voidsetNeedsSegmentation(boolean needsSegmentation)voidsetSimplifyTags(boolean simplifyTags)voidsetUseCodeFinder(boolean useCodeFinder)StringtoString()Serialize this parameters object to a string.-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString
-
-
-
-
Field Detail
-
MAXVALIDATION
public static final String MAXVALIDATION
- See Also:
- Constant Field Values
-
MERGE_AS_PARAGRAPH
@Deprecated public static final String MERGE_AS_PARAGRAPH
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxValidation
public boolean getMaxValidation()
-
setMaxValidation
public void setMaxValidation(boolean maxValidation)
-
getMergeAsParagraph
@Deprecated public boolean getMergeAsParagraph()
Deprecated.
-
setMergeAsParagraph
@Deprecated public void setMergeAsParagraph(boolean mergeAsParagraph)
Deprecated.
-
getUseCodeFinder
public boolean getUseCodeFinder()
-
setUseCodeFinder
public void setUseCodeFinder(boolean useCodeFinder)
-
getCodeFinder
public InlineCodeFinder getCodeFinder()
-
getCodeFinderData
public String getCodeFinderData()
-
setCodeFinderData
public void setCodeFinderData(String data)
-
getSimplifyTags
public boolean getSimplifyTags()
-
setSimplifyTags
public void setSimplifyTags(boolean simplifyTags)
-
getNeedsSegmentation
public boolean getNeedsSegmentation()
-
setNeedsSegmentation
public void setNeedsSegmentation(boolean needsSegmentation)
-
reset
public void reset()
Description copied from class:StringParametersReset 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:
resetin interfaceIParameters- Overrides:
resetin classStringParameters
-
fromString
public void fromString(String data)
Description copied from class:StringParametersReset this parameters object to its default values and then load additional parameters from the provided data.Subclasses should not normally need to override this method unless they are maintaining complex values (eg,
InlineCodeFinder) that require extra initialization as part of their parameter state.- Specified by:
fromStringin interfaceIParameters- Overrides:
fromStringin classStringParameters- Parameters:
data- the string holding the parameters. It must be formatted as the string generated by toString(). Line-breaks must be normalized to '\n'. It can also be null or empty, in such case the parameters are left with their current values. Use reset() to reset the parameters to their defaults.
-
toString
public String toString()
Description copied from class:StringParametersSerialize this parameters object to a string.Subclasses should not normally need to override this method unless they are maintaining complex values (eg,
InlineCodeFinder) that require extra serialization as part of their parameter state.- Specified by:
toStringin interfaceIParameters- Overrides:
toStringin classStringParameters- Returns:
- the string holding all the parameters.
-
getParametersDescription
public ParametersDescription getParametersDescription()
Description copied from interface:IParametersGets the description of the parameters.- Specified by:
getParametersDescriptionin interfaceIParameters- Overrides:
getParametersDescriptionin classBaseParameters- Returns:
- the ParametersDescription object for this set of parameters, or null if none is provided.
-
createEditorDescription
public EditorDescription createEditorDescription(ParametersDescription paramDesc)
- Specified by:
createEditorDescriptionin interfaceIEditorDescriptionProvider
-
-