From 67756e1263fe51c4848461660ec4c6359206f1c2 Mon Sep 17 00:00:00 2001 From: Erich Schubert Date: Mon, 23 Apr 2018 17:34:33 +0200 Subject: [PATCH] add back proxy constants, for improved compatibility --- .../heideltime/standalone/DocumentType.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/de/unihd/dbs/heideltime/standalone/DocumentType.java diff --git a/src/de/unihd/dbs/heideltime/standalone/DocumentType.java b/src/de/unihd/dbs/heideltime/standalone/DocumentType.java new file mode 100644 index 00000000..91ad03e5 --- /dev/null +++ b/src/de/unihd/dbs/heideltime/standalone/DocumentType.java @@ -0,0 +1,28 @@ +package de.unihd.dbs.heideltime.standalone; + +/** + * Legacy constants to transition to the enum at {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType}. + * + * Because we cannot subclass enums, this will not be binary compatible, + * but at least we get compile time compatibility. + * + * @author Erich Schubert + */ +@Deprecated +public final class DocumentType { + /** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.NARRATIVE} instead. */ + @Deprecated + public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType NARRATIVES = de.unihd.dbs.uima.annotator.heideltime.DocumentType.NARRATIVE; + + /** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.NEWS} instead. */ + @Deprecated + public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType NEWS = de.unihd.dbs.uima.annotator.heideltime.DocumentType.NEWS; + + /** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.COLLOQUIAL} instead. */ + @Deprecated + public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType COLLOQUIAL = de.unihd.dbs.uima.annotator.heideltime.DocumentType.COLLOQUIAL; + + /** Use {@link de.unihd.dbs.uima.annotator.heideltime.DocumentType.SCIENTIFIC} instead. */ + @Deprecated + public static final de.unihd.dbs.uima.annotator.heideltime.DocumentType SCIENTIFIC = de.unihd.dbs.uima.annotator.heideltime.DocumentType.SCIENTIFIC; +}