com.google.gdata.util.common.xml
Enum XmlWriter.WriterFlags

java.lang.Object
  extended by java.lang.Enum<XmlWriter.WriterFlags>
      extended by com.google.gdata.util.common.xml.XmlWriter.WriterFlags
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XmlWriter.WriterFlags>
Enclosing class:
XmlWriter

public static enum XmlWriter.WriterFlags
extends java.lang.Enum<XmlWriter.WriterFlags>

Enumeration type that can be used to configure the XmlWriter behavior.


Enum Constant Summary
EXPAND_EMPTY
          Use start/end element pair format for empty elements
PRETTY_PRINT
          Pretty print the XML document.
WRITE_HEADER
          Output xml header
 
Method Summary
static XmlWriter.WriterFlags valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XmlWriter.WriterFlags[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WRITE_HEADER

public static final XmlWriter.WriterFlags WRITE_HEADER
Output xml header


EXPAND_EMPTY

public static final XmlWriter.WriterFlags EXPAND_EMPTY
Use start/end element pair format for empty elements


PRETTY_PRINT

public static final XmlWriter.WriterFlags PRETTY_PRINT
Pretty print the XML document. Adds indentation and new lines.

Method Detail

values

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

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

valueOf

public static XmlWriter.WriterFlags valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null