public class

ExportFormat

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.docs.ExportFormat

Class Overview

A map of possible export formats.

Summary

Nested Classes
enum ExportFormat.Source Export source document type. 
Constants
String SOURCE XML "source" attribute name
String TARGET XML "target" attribute name
String XML_NAME XML element name
Fields
private static final EnumToAttributeValue<ExportFormat.Source> SOURCE_ENUM_TO_ATTRIBUTE_VALUE
private ExportFormat.Source source Export source document type
private String target Export target mime type
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
ExportFormat()
Default mutable constructor.
ExportFormat(ExportFormat.Source source, String target)
Immutable constructor.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
ExportFormat.Source getSource()
Returns the export source document type.
String getTarget()
Returns the export target mime type.
boolean hasSource()
Returns whether it has the export source document type.
boolean hasTarget()
Returns whether it has the export target mime type.
int hashCode()
void setSource(ExportFormat.Source source)
Sets the export source document type.
void setTarget(String target)
Sets the export target mime type.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String SOURCE

XML "source" attribute name

Constant Value: "source"

private static final String TARGET

XML "target" attribute name

Constant Value: "target"

static final String XML_NAME

XML element name

Constant Value: "exportFormat"

Fields

private static final EnumToAttributeValue<ExportFormat.Source> SOURCE_ENUM_TO_ATTRIBUTE_VALUE

private ExportFormat.Source source

Export source document type

private String target

Export target mime type

Public Constructors

public ExportFormat ()

Default mutable constructor.

public ExportFormat (ExportFormat.Source source, String target)

Immutable constructor.

Parameters
source Export source document type.
target Export target mime type.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public ExportFormat.Source getSource ()

Returns the export source document type.

Returns
  • export source document type

public String getTarget ()

Returns the export target mime type.

Returns
  • export target mime type

public boolean hasSource ()

Returns whether it has the export source document type.

Returns
  • whether it has the export source document type

public boolean hasTarget ()

Returns whether it has the export target mime type.

Returns
  • whether it has the export target mime type

public int hashCode ()

public void setSource (ExportFormat.Source source)

Sets the export source document type.

Parameters
source Export source document type or null to reset

public void setTarget (String target)

Sets the export target mime type.

Parameters
target Export target mime type or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.