org.odftoolkit.odfdom.dom
Enum OdfSchemaDocument.OdfXMLFile

java.lang.Object
  extended by java.lang.Enum<OdfSchemaDocument.OdfXMLFile>
      extended by org.odftoolkit.odfdom.dom.OdfSchemaDocument.OdfXMLFile
All Implemented Interfaces:
Serializable, Comparable<OdfSchemaDocument.OdfXMLFile>
Enclosing class:
OdfSchemaDocument

public static enum OdfSchemaDocument.OdfXMLFile
extends Enum<OdfSchemaDocument.OdfXMLFile>

This enum contains all possible standardized XML ODF files of the OpenDocument document.


Enum Constant Summary
CONTENT
          The XML file containing the content of an ODF document as specified by the ODF 1.2 specification part 1.
META
          The XML file containing a predifined set of metadata related to an ODF document as specified by the ODF 1.2 specification part 1.
SETTINGS
          The XML file containing the settings of an ODF document as specified by the ODF 1.2 specification part 1.
STYLES
          The XML file containing the styles of an ODF document as specified by the ODF 1.2 specification part 1.
 
Method Summary
 String getFileName()
           
static OdfSchemaDocument.OdfXMLFile valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OdfSchemaDocument.OdfXMLFile[] 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

CONTENT

public static final OdfSchemaDocument.OdfXMLFile CONTENT
The XML file containing the content of an ODF document as specified by the ODF 1.2 specification part 1.


META

public static final OdfSchemaDocument.OdfXMLFile META
The XML file containing a predifined set of metadata related to an ODF document as specified by the ODF 1.2 specification part 1.


SETTINGS

public static final OdfSchemaDocument.OdfXMLFile SETTINGS
The XML file containing the settings of an ODF document as specified by the ODF 1.2 specification part 1.


STYLES

public static final OdfSchemaDocument.OdfXMLFile STYLES
The XML file containing the styles of an ODF document as specified by the ODF 1.2 specification part 1.

Method Detail

values

public static OdfSchemaDocument.OdfXMLFile[] 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 (OdfSchemaDocument.OdfXMLFile c : OdfSchemaDocument.OdfXMLFile.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OdfSchemaDocument.OdfXMLFile 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

getFileName

public String getFileName()
Returns:
the file name of xml files contained in odf packages.


Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.