Package net.sf.okapi.filters.txml
Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.filters.txml.Parameters
-
- All Implemented Interfaces:
Cloneable
,IParameters
,ISimplifierRulesParameters
,IEditorDescriptionProvider
public class Parameters extends StringParameters implements IEditorDescriptionProvider, ISimplifierRulesParameters
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOWEMPTYOUTPUTTARGET
-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
Fields inherited from interface net.sf.okapi.common.ISimplifierRulesParameters
SIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditorDescription
createEditorDescription(ParametersDescription paramDesc)
boolean
getAllowEmptyOutputTarget()
ParametersDescription
getParametersDescription()
Gets the description of the parameters.String
getSimplifierRules()
Get the code simplifier rules as defined bySimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj).void
reset()
Reset this parameters object to its default values.void
setAllowEmptyOutputTarget(boolean allowEmptyOutputTarget)
void
setSimplifierRules(String rules)
Set the simplifier rules.void
validateSimplifierRules()
Validate the current code simplifier rules.-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
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
-
ALLOWEMPTYOUTPUTTARGET
public static final String ALLOWEMPTYOUTPUTTARGET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllowEmptyOutputTarget
public boolean getAllowEmptyOutputTarget()
-
setAllowEmptyOutputTarget
public void setAllowEmptyOutputTarget(boolean allowEmptyOutputTarget)
-
getSimplifierRules
public String getSimplifierRules()
Description copied from interface:ISimplifierRulesParameters
Get the code simplifier rules as defined bySimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj).- Specified by:
getSimplifierRules
in interfaceISimplifierRulesParameters
- Returns:
- rules as a string.
-
setSimplifierRules
public void setSimplifierRules(String rules)
Description copied from interface:ISimplifierRulesParameters
Set the simplifier rules.- Specified by:
setSimplifierRules
in interfaceISimplifierRulesParameters
- Parameters:
rules
- new simplifier rules
-
validateSimplifierRules
public void validateSimplifierRules() throws ParseException
Description copied from interface:ISimplifierRulesParameters
Validate the current code simplifier rules.- Specified by:
validateSimplifierRules
in interfaceISimplifierRulesParameters
- Throws:
ParseException
- if the rule cannot be parsed
-
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
-
getParametersDescription
public ParametersDescription getParametersDescription()
Description copied from interface:IParameters
Gets the description of the parameters.- Specified by:
getParametersDescription
in interfaceIParameters
- Overrides:
getParametersDescription
in classBaseParameters
- Returns:
- the ParametersDescription object for this set of parameters, or null if none is provided.
-
createEditorDescription
public EditorDescription createEditorDescription(ParametersDescription paramDesc)
- Specified by:
createEditorDescription
in interfaceIEditorDescriptionProvider
-
-