public class

EntryLink

extends Element
implements ILink
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.EntryLink
Known Direct Subclasses

Class Overview

Describes a nested entry link.

Summary

Fields
public static final AttributeKey<String> HREF The entry URI.
public static final ElementKey<Void, EntryLink> KEY The key for this element.
public static final AttributeKey<Boolean> READ_ONLY Whether the contained entry is read-only.
public static final AttributeKey<String> REL Qualified name of entry relation type attribute.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
EntryLink()
Default mutable constructor.
Protected Constructors
EntryLink(ElementKey<?, ? extends EntryLink> key)
Create an instance using a different key.
EntryLink(ElementKey<?, ? extends EntryLink> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
Entry getEntry()
Returns the nested entry.
String getHref()
Returns the entry URI.
Boolean getReadOnly()
Returns the whether the contained entry is read-only.
String getRel()
Returns the entry relation type.
String getType()
Returns the mime type of the link.
boolean hasEntry()
Returns whether it has the nested entry.
boolean hasHref()
Returns whether it has the entry URI.
boolean hasReadOnly()
Returns whether it has the whether the contained entry is read-only.
boolean hasRel()
Returns whether it has the entry relation type.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
void setEntry(Entry entry)
Sets the nested entry.
void setHref(String href)
Sets the entry URI.
void setReadOnly(Boolean readOnly)
Sets the whether the contained entry is read-only.
void setRel(String rel)
Sets the entry relation type.
void setType(String type)
Sets the mime type of the link.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object
From interface com.google.gdata.data.ILink
From interface com.google.gdata.data.Reference

Fields

public static final AttributeKey<String> HREF

The entry URI.

public static final ElementKey<Void, EntryLink> KEY

The key for this element.

public static final AttributeKey<Boolean> READ_ONLY

Whether the contained entry is read-only.

public static final AttributeKey<String> REL

Qualified name of entry relation type attribute.

Public Constructors

public EntryLink ()

Default mutable constructor.

Protected Constructors

protected EntryLink (ElementKey<?, ? extends EntryLink> key)

Create an instance using a different key.

Parameters
key

protected EntryLink (ElementKey<?, ? extends EntryLink> key, Element source)

Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element.

Parameters
key The key to use for this element.
source Source element

Public Methods

public Entry getEntry ()

Returns the nested entry.

Returns
  • nested entry

public String getHref ()

Returns the entry URI.

Returns
  • entry URI

public Boolean getReadOnly ()

Returns the whether the contained entry is read-only.

Returns
  • whether the contained entry is read-only

public String getRel ()

Returns the entry relation type.

Returns
  • entry relation type

public String getType ()

Returns the mime type of the link.

public boolean hasEntry ()

Returns whether it has the nested entry.

Returns
  • whether it has the nested entry

public boolean hasHref ()

Returns whether it has the entry URI.

Returns
  • whether it has the entry URI

public boolean hasReadOnly ()

Returns whether it has the whether the contained entry is read-only.

Returns
  • whether it has the whether the contained entry is read-only

public boolean hasRel ()

Returns whether it has the entry relation type.

Returns
  • whether it has the entry relation type

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public void setEntry (Entry entry)

Sets the nested entry.

Parameters
entry Nested entry or null to reset

public void setHref (String href)

Sets the entry URI.

Parameters
href Entry URI or null to reset

public void setReadOnly (Boolean readOnly)

Sets the whether the contained entry is read-only.

Parameters
readOnly Whether the contained entry is read-only or null to reset

public void setRel (String rel)

Sets the entry relation type.

Parameters
rel Entry relation type or null to reset

public void setType (String type)

Sets the mime type of the link.

Parameters
type

public String toString ()