public class

EntryLink

extends Link
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Link
         ↳ com.google.gdata.data.extensions.EntryLink<E extends com.google.gdata.data.BaseEntry<?>>

Class Overview

The EntryLink class defines the object model for a link entity that refers to a GData entry. The entry content may be included inline via child elements of the entry link or only included by reference.

Summary

Fields
protected BaseEntry<?> entry Nested entry (optional).
protected final Class<E extends BaseEntry<?>> entryClass Nested entry class.
protected boolean readOnly Read only flag.
[Expand]
Inherited Fields
From class com.google.gdata.data.Link
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
EntryLink()
Constructs an entry link that points to an Entry.
EntryLink(Class<E> entryClass)
Constructs an entry link that points to the given entry type.
Public Methods
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.
E getEntry()
Class<E> getEntryClass()
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
boolean getReadOnly()
String getType()
Returns the mime type of the link.
void setEntry(E v)
void setReadOnly(boolean v)
Protected Methods
void visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
[Expand]
Inherited Methods
From class com.google.gdata.data.Link
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
From interface com.google.gdata.data.ILink
From interface com.google.gdata.data.Reference

Fields

protected BaseEntry<?> entry

Nested entry (optional).

protected final Class<E extends BaseEntry<?>> entryClass

Nested entry class.

protected boolean readOnly

Read only flag.

Public Constructors

public EntryLink ()

Constructs an entry link that points to an Entry.

public EntryLink (Class<E> entryClass)

Constructs an entry link that points to the given entry type.

Parameters
entryClass Entry class.

Public Methods

public void generate (XmlWriter w, ExtensionProfile extProfile)

Generates an XML representation for the extension.

Parameters
w XML writer
extProfile Extension profile
Throws
IOException

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description.

public E getEntry ()

public Class<E> getEntryClass ()

public XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.

Parameters
extProfile Extension profile
namespace Extension namespace
localName Tag name, without the namespace prefix
attrs Tag attributes
Returns
  • an element handler

public boolean getReadOnly ()

public String getType ()

Returns the mime type of the link.

public void setEntry (E v)

Parameters
v

public void setReadOnly (boolean v)

Parameters
v

Protected Methods

protected void visitChildren (ExtensionVisitor ev)

Called to visit all children of this extension point.

Parameters
ev The extension visitor.