public static enum OdfSpreadsheetDocument.OdfMediaType extends Enum<OdfSpreadsheetDocument.OdfMediaType> implements MediaType
Enum Constant and Description |
---|
SPREADSHEET |
SPREADSHEET_TEMPLATE |
Modifier and Type | Method and Description |
---|---|
String |
getMediaTypeString() |
static OdfDocument.OdfMediaType |
getOdfMediaType(String mediaType) |
String |
getSuffix() |
static OdfSpreadsheetDocument.OdfMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OdfSpreadsheetDocument.OdfMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OdfSpreadsheetDocument.OdfMediaType SPREADSHEET
public static final OdfSpreadsheetDocument.OdfMediaType SPREADSHEET_TEMPLATE
public static OdfSpreadsheetDocument.OdfMediaType[] values()
for (OdfSpreadsheetDocument.OdfMediaType c : OdfSpreadsheetDocument.OdfMediaType.values()) System.out.println(c);
public static OdfSpreadsheetDocument.OdfMediaType 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 String getMediaTypeString()
getMediaTypeString
in interface MediaType
public String getSuffix()
public static OdfDocument.OdfMediaType getOdfMediaType(String mediaType)
mediaType
- string defining an ODF documentCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.