Enum WhitespaceCorrector.Punctuation
- java.lang.Object
-
- java.lang.Enum<WhitespaceCorrector.Punctuation>
-
- net.sf.okapi.steps.whitespacecorrection.WhitespaceCorrector.Punctuation
-
- All Implemented Interfaces:
Serializable,Comparable<WhitespaceCorrector.Punctuation>
- Enclosing class:
- WhitespaceCorrector
public static enum WhitespaceCorrector.Punctuation extends Enum<WhitespaceCorrector.Punctuation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAEXCLAMATION_MARKFULL_STOPQUESTION_MARK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetWhitespaceAcceptingForm()char[]getWhitespaceNonAcceptingForm()static WhitespaceCorrector.PunctuationvalueOf(String name)Returns the enum constant of this type with the specified name.static WhitespaceCorrector.Punctuation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL_STOP
public static final WhitespaceCorrector.Punctuation FULL_STOP
-
COMMA
public static final WhitespaceCorrector.Punctuation COMMA
-
EXCLAMATION_MARK
public static final WhitespaceCorrector.Punctuation EXCLAMATION_MARK
-
QUESTION_MARK
public static final WhitespaceCorrector.Punctuation QUESTION_MARK
-
-
Method Detail
-
values
public static WhitespaceCorrector.Punctuation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WhitespaceCorrector.Punctuation c : WhitespaceCorrector.Punctuation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WhitespaceCorrector.Punctuation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getWhitespaceAcceptingForm
public char getWhitespaceAcceptingForm()
-
getWhitespaceNonAcceptingForm
public char[] getWhitespaceNonAcceptingForm()
-
-