|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ContentTypeVersioned> org.jopendocument.dom.ContentTypeVersioned
public enum ContentTypeVersioned
A ContentType
of a certain version.
Enum Constant Summary | |
---|---|
GRAPHICS
|
|
GRAPHICS_TEMPLATE
|
|
GRAPHICS_V1
|
|
PRESENTATION
|
|
PRESENTATION_TEMPLATE
|
|
PRESENTATION_V1
|
|
SPREADSHEET
|
|
SPREADSHEET_TEMPLATE
|
|
SPREADSHEET_V1
|
|
TEXT
|
|
TEXT_TEMPLATE
|
|
TEXT_V1
|
Method Summary | |
---|---|
org.jdom.Element |
createContent(XMLFormatVersion version)
Create a new minimal document using ODPackage.RootElement.CONTENT . |
org.jdom.Element |
createContent(XMLFormatVersion version,
boolean singleXML)
Create a new minimal document. |
ODPackage |
createPackage(XMLFormatVersion version)
Creates an empty package. |
org.jdom.Document |
createStyles(XMLFormatVersion version)
Create a new minimal document using ODPackage.RootElement.STYLES . |
static ContentTypeVersioned |
fromMime(byte[] mime)
|
static ContentTypeVersioned |
fromMime(String mime)
|
org.jdom.Element |
getBody(org.jdom.Document doc)
|
String |
getBodyPath()
Returns the xpath to the body (from below the root element). |
String |
getExtension()
|
String |
getFlatExtension()
|
String |
getMimeType()
|
ContentTypeVersioned |
getNonTemplate()
|
String |
getShortName()
|
ContentTypeVersioned |
getTemplate()
|
ContentType |
getType()
|
XMLVersion |
getVersion()
|
boolean |
isTemplate()
|
void |
setType(org.jdom.Document doc)
|
static ContentTypeVersioned |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ContentTypeVersioned[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ContentTypeVersioned TEXT_V1
public static final ContentTypeVersioned GRAPHICS_V1
public static final ContentTypeVersioned PRESENTATION_V1
public static final ContentTypeVersioned SPREADSHEET_V1
public static final ContentTypeVersioned TEXT
public static final ContentTypeVersioned TEXT_TEMPLATE
public static final ContentTypeVersioned GRAPHICS
public static final ContentTypeVersioned GRAPHICS_TEMPLATE
public static final ContentTypeVersioned PRESENTATION
public static final ContentTypeVersioned PRESENTATION_TEMPLATE
public static final ContentTypeVersioned SPREADSHEET
public static final ContentTypeVersioned SPREADSHEET_TEMPLATE
Method Detail |
---|
public static ContentTypeVersioned[] values()
for (ContentTypeVersioned c : ContentTypeVersioned.values()) System.out.println(c);
public static ContentTypeVersioned valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic final XMLVersion getVersion()
public final String getShortName()
public final String getBodyPath()
public final org.jdom.Element getBody(org.jdom.Document doc)
public final String getMimeType()
public final ContentType getType()
public final String getExtension()
public final String getFlatExtension()
public final boolean isTemplate()
public final ContentTypeVersioned getTemplate()
public final ContentTypeVersioned getNonTemplate()
public final org.jdom.Element createContent(XMLFormatVersion version)
ODPackage.RootElement.CONTENT
.
version
- the version.
createContent(XMLFormatVersion, boolean)
public org.jdom.Element createContent(XMLFormatVersion version, boolean singleXML)
version
- the version.singleXML
- true
for ODPackage.RootElement.SINGLE_CONTENT
, false
for ODPackage.RootElement.CONTENT
.
createPackage(XMLFormatVersion)
public void setType(org.jdom.Document doc)
public org.jdom.Document createStyles(XMLFormatVersion version)
ODPackage.RootElement.STYLES
.
version
- the version.
public ODPackage createPackage(XMLFormatVersion version)
version
- the version of the package.
ODPackage.RootElement.CONTENT
and ODPackage.RootElement.STYLES
public static ContentTypeVersioned fromMime(String mime)
public static ContentTypeVersioned fromMime(byte[] mime)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |