Package org.apache.tika.config.loader
Class KebabCaseConverter
java.lang.Object
org.apache.tika.config.loader.KebabCaseConverter
Utility for converting Java class names to kebab-case.
Used for automatic component name generation from class names.
Note: This is a copy of the implementation in
org.apache.tika.annotation.KebabCaseConverter to avoid
a runtime dependency on the annotation processor module. The two
implementations must be kept in sync.
Examples:
- PDFParser → pdf-parser
- OCRParser → ocr-parser
- HTMLParser → html-parser
- DefaultParser → default-parser
- TesseractOCRParser → tesseract-ocr-parser
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoKebabCase(String className) Converts a Java class name to kebab-case.
-
Method Details
-
toKebabCase
Converts a Java class name to kebab-case.- Parameters:
className- the simple class name (without package)- Returns:
- the kebab-case version of the name
-