org.jdom.DocType |
createDocType(XMLVersion version)
SINGLE_CONTENT
public static final ODPackage.RootElement SINGLE_CONTENT
- Contains the entire document, see 3.1.2 of OpenDocument-v1.2-part1-cd04
CONTENT
public static final ODPackage.RootElement CONTENT
- Document content and automatic styles used in the content, see 3.1.3.2
STYLES
public static final ODPackage.RootElement STYLES
- Styles used in document content and automatic styles used in styles, see 3.1.3.3
META
public static final ODPackage.RootElement META
- Document metadata elements, see 3.1.3.4
SETTINGS
public static final ODPackage.RootElement SETTINGS
- Implementation-specific settings, see 3.1.3.5
values
public static ODPackage.RootElement[] 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 (ODPackage.RootElement c : ODPackage.RootElement.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ODPackage.RootElement 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
getPackageElements
public static final EnumSet<ODPackage.RootElement> getPackageElements()
fromDocument
public static final ODPackage.RootElement fromDocument(org.jdom.Document doc)
fromElementName
public static final ODPackage.RootElement fromElementName(String name)
getElementNSPrefix
public final String getElementNSPrefix()
getElementName
public final String getElementName()
createDocument
public final org.jdom.Document createDocument(XMLFormatVersion fv)
createDocType
public final org.jdom.DocType createDocType(XMLVersion version)
getZipEntry
public final String getZipEntry()
- The name of the zip entry in the package.
- Returns:
- the path of the file,
null if this element shouldn't be in a
package.
Copyright © 2010 jOpenDocument All Rights Reserved.
|