diff --git a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java index d4bd7fd50..0e5e36d3e 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.text.translate; import java.io.IOException; import java.io.Writer; +import java.util.Arrays; +import java.util.EnumSet; /** * Translate XML numeric entities of the form &#[xX]?\d+;? to @@ -30,6 +32,41 @@ import java.io.Writer; */ public class NumericEntityUnescaper extends CharSequenceTranslator { + public static enum OPTION { semiColonRequired, semiColonOptional, errorIfNoSemiColon } + + // TODO?: Create an OptionsSet class to hide some of the conditional logic below + private final EnumSet