public class

GlossariesElement

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.gtt.GlossariesElement

Class Overview

Describes a glossaries element.

Summary

Constants
String XML_NAME XML element name
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
GlossariesElement()
Default mutable constructor.
Public Methods
void addLink(Link link)
Adds a new glossary entry link.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
List<Link> getLinks()
Returns the glossary entry links.
boolean hasLinks()
Returns whether it has the glossary entry links.
String toString()
Protected Methods
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

static final String XML_NAME

XML element name

Constant Value: "glossary"

Public Constructors

public GlossariesElement ()

Default mutable constructor.

Public Methods

public void addLink (Link link)

Adds a new glossary entry link.

Parameters
link Glossary entry link

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

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 List<Link> getLinks ()

Returns the glossary entry links.

Returns
  • glossary entry links

public boolean hasLinks ()

Returns whether it has the glossary entry links.

Returns
  • whether it has the glossary entry links

public String toString ()

Protected Methods

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.