org.jopendocument.dom
Enum ContentTypeVersioned
java.lang.Object
java.lang.Enum<ContentTypeVersioned>
org.jopendocument.dom.ContentTypeVersioned
- All Implemented Interfaces:
- Serializable, Comparable<ContentTypeVersioned>
public enum ContentTypeVersioned
- extends Enum<ContentTypeVersioned>
A ContentType of a certain version.
- Author:
- Sylvain
TEXT_V1
public static final ContentTypeVersioned TEXT_V1
GRAPHICS_V1
public static final ContentTypeVersioned GRAPHICS_V1
PRESENTATION_V1
public static final ContentTypeVersioned PRESENTATION_V1
SPREADSHEET_V1
public static final ContentTypeVersioned SPREADSHEET_V1
TEXT
public static final ContentTypeVersioned TEXT
TEXT_TEMPLATE
public static final ContentTypeVersioned TEXT_TEMPLATE
GRAPHICS
public static final ContentTypeVersioned GRAPHICS
GRAPHICS_TEMPLATE
public static final ContentTypeVersioned GRAPHICS_TEMPLATE
PRESENTATION
public static final ContentTypeVersioned PRESENTATION
PRESENTATION_TEMPLATE
public static final ContentTypeVersioned PRESENTATION_TEMPLATE
SPREADSHEET
public static final ContentTypeVersioned SPREADSHEET
SPREADSHEET_TEMPLATE
public static final ContentTypeVersioned SPREADSHEET_TEMPLATE
values
public static ContentTypeVersioned[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ContentTypeVersioned c : ContentTypeVersioned.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ContentTypeVersioned valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
getVersion
public final XMLVersion getVersion()
getShortName
public final String getShortName()
getMimeType
public final String getMimeType()
getType
public final ContentType getType()
getExtension
public final String getExtension()
fromType
public static ContentTypeVersioned fromType(ContentType type,
XMLVersion version)
fromType
public static Set<ContentTypeVersioned> fromType(ContentType type)
fromMime
public static ContentTypeVersioned fromMime(String mime)
Copyright © 2010 jOpenDocument All Rights Reserved.