Package io.github.erdos.stencil
Enum Class TemplateDocumentFormats
- All Implemented Interfaces:
Serializable
,Comparable<TemplateDocumentFormats>
,Constable
These types are used when preprocessing a template document.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<TemplateDocumentFormats>
ofExtension
(String fileName) static TemplateDocumentFormats
Returns the enum constant of this class with the specified name.static TemplateDocumentFormats[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOCX
Microsoft Word Open XML Format Document file. -
PPTX
Microsoft PowerPoint Open XML Presentation file. -
ODT
OpenDocument Text Document for LibreOffice. -
ODP
OpenDocument presentation files for LibreOffice. -
XML
Raw XML file. -
TXT
Simple text file without formatting. Like XML but without a header.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
ofExtension
-