public enum WordProcessingFormat extends Enum<WordProcessingFormat> implements IEnumValue
Defines various word processing document subformats.
Enum Constant and Description |
---|
Doc
Represents the .DOC Word format.
|
Docm
Represents the .DOCM Word format.
|
Docx
Represents the .DOCX Word format.
|
Dot
Represents the .DOT Word format.
|
Dotm
Represents the .DOTM Word format.
|
Dotx
Represents the .DOTX Word format.
|
Odt
Represents the .ODT format.
|
Unknown
The format is not recognized.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static WordProcessingFormat |
getByRawValue(int rawValue) |
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
static IEnumValue |
getFirst() |
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
static WordProcessingFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WordProcessingFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final WordProcessingFormat Unknown
The format is not recognized.
public static final WordProcessingFormat Doc
Represents the .DOC Word format.
Files with .doc extension represent documents generated by Microsoft Word or other word processing applications in binary file format.
The extension was initially used for plain text documentation on several different operating systems. It can contain several different types of data such as images,
formatted as well as plain text, graphs, charts, embedded objects, links, pages, page formatting, print settings and a lot others.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/doc/">here</a>
.
public static final WordProcessingFormat Docm
Represents the .DOCM Word format.
DOCM files are Microsoft Word 2007 or higher generated documents with the ability to run macros.
It is similar to DOCX file format but the ability to run macros makes it different from DOCX. Like DOCX, DOCM files can be store text, images,
tables, shapes, charts and other contents.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/docm/">here</a>
.
public static final WordProcessingFormat Docx
Represents the .DOCX Word format.
DOCX is a well-known format for Microsoft Word documents.
Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from
plain binary to a combination of XML and binary files.
Docx files can be opened with Word 2007 and lateral versions but not with the earlier versions of MS Word which support DOC file extensions.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/docx/">here</a>
.
public static final WordProcessingFormat Dot
Represents the .DOT Word format.
Files with .DOT extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files.
A template file is created in order to have specific user settings that should be applied to subsequent files created from these.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/dot/">here</a>
.
public static final WordProcessingFormat Dotx
Represents the .DOTX Word format.
Files with DOTX extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files.
A template file is created in order to have specific user settings that should be applied to subsequent flies created from these.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/dotx/">here</a>
.
public static final WordProcessingFormat Dotm
Represents the .DOTM Word format.
A file with DOTM extension represents template file created with Microsoft Word 2007 or higher.
It is similar to the popular DOCX file format other than it retains the user defined settings for reuse in case of creating new documents.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/dotm/">here</a>
.
public static final WordProcessingFormat Odt
Represents the .ODT format.
ODT files are type of documents created with word processing applications that are based on OpenDocument Text File format.
These are created with word processor applications such as free OpenOffice Writer and can hold content such as text, images, objects and styles.
Learn more about this file format <a target="_blank" href="https://wiki.fileformat.com/word-processing/odt/">here</a>
.
public static WordProcessingFormat[] values()
for (WordProcessingFormat c : WordProcessingFormat.values()) System.out.println(c);
public static WordProcessingFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static WordProcessingFormat getByRawValue(int rawValue)
public static IEnumValue getFirst()
public Object[] getAllValues()
IEnumValue
Returns the array of all values defined in the class.
getAllValues
in interface IEnumValue
public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValue
Returns the enumeration value by the raw value associated with it.
getEnumValueByRawValue
in interface IEnumValue
rawValue
- The raw value.public IEnumValue getEnumValueByName(String name)
IEnumValue
Returns the enumeration value by its name.
getEnumValueByName
in interface IEnumValue
name
- The name of the enumeration value.public RawIntegerType getRawValueType()
IEnumValue
Returns the underlying type of the raw value of this enumeration value.
getRawValueType
in interface IEnumValue
public int getRawValue()
IEnumValue
Returns the raw value of this enumeration value.
getRawValue
in interface IEnumValue