public class

DocumentEntry

extends MediaEntry<E extends BaseEntry<E>>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.media.MediaEntry<E extends com.google.gdata.data.BaseEntry<E>>
           ↳ com.google.gdata.data.gtt.DocumentEntry

Class Overview

Describes a document entry.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
DocumentEntry()
Default mutable constructor.
DocumentEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
Link getAccessControlListLink()
Returns the link that provides the URI of the feed for the access control list for the entry.
Deleted getDeleted()
Returns the marker for deleted entries.
DocumentSource getDocumentSource()
Returns the document source.
GlossariesElement getGlossary()
Returns the glossaries element.
LastModifiedBy getLastModifiedBy()
Returns the last modified by.
NumberOfSourceWords getNumberOfSourceWords()
Returns the number of source words.
PercentComplete getPercentComplete()
Returns the percent complete.
SourceLanguage getSourceLanguage()
Returns the source language.
TargetLanguage getTargetLanguage()
Returns the target language.
TmsElement getTranslationMemory()
Returns the tms element.
boolean hasDeleted()
Returns whether it has the marker for deleted entries.
boolean hasDocumentSource()
Returns whether it has the document source.
boolean hasGlossary()
Returns whether it has the glossaries element.
boolean hasLastModifiedBy()
Returns whether it has the last modified by.
boolean hasNumberOfSourceWords()
Returns whether it has the number of source words.
boolean hasPercentComplete()
Returns whether it has the percent complete.
boolean hasSourceLanguage()
Returns whether it has the source language.
boolean hasTargetLanguage()
Returns whether it has the target language.
boolean hasTranslationMemory()
Returns whether it has the tms element.
void setDeleted(Deleted deleted)
Sets the marker for deleted entries.
void setDocumentSource(DocumentSource documentSource)
Sets the document source.
void setGlossary(GlossariesElement glossary)
Sets the glossaries element.
void setLastModifiedBy(LastModifiedBy lastModifiedBy)
Sets the last modified by.
void setNumberOfSourceWords(NumberOfSourceWords numberOfSourceWords)
Sets the number of source words.
void setPercentComplete(PercentComplete percentComplete)
Sets the percent complete.
void setSourceLanguage(SourceLanguage sourceLanguage)
Sets the source language.
void setTargetLanguage(TargetLanguage targetLanguage)
Sets the target language.
void setTranslationMemory(TmsElement translationMemory)
Sets the tms element.
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.media.MediaEntry
From class com.google.gdata.data.BaseEntry
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.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor
From interface com.google.gdata.data.media.IMediaEntry

Public Constructors

public DocumentEntry ()

Default mutable constructor.

public DocumentEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

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 Link getAccessControlListLink ()

Returns the link that provides the URI of the feed for the access control list for the entry.

Returns
  • Link that provides the URI of the feed for the access control list for the entry or null for none.

public Deleted getDeleted ()

Returns the marker for deleted entries.

Returns
  • marker for deleted entries

public DocumentSource getDocumentSource ()

Returns the document source.

Returns
  • document source

public GlossariesElement getGlossary ()

Returns the glossaries element.

Returns
  • glossaries element

public LastModifiedBy getLastModifiedBy ()

Returns the last modified by.

Returns
  • last modified by

public NumberOfSourceWords getNumberOfSourceWords ()

Returns the number of source words.

Returns
  • number of source words

public PercentComplete getPercentComplete ()

Returns the percent complete.

Returns
  • percent complete

public SourceLanguage getSourceLanguage ()

Returns the source language.

Returns
  • source language

public TargetLanguage getTargetLanguage ()

Returns the target language.

Returns
  • target language

public TmsElement getTranslationMemory ()

Returns the tms element.

Returns
  • tms element

public boolean hasDeleted ()

Returns whether it has the marker for deleted entries.

Returns
  • whether it has the marker for deleted entries

public boolean hasDocumentSource ()

Returns whether it has the document source.

Returns
  • whether it has the document source

public boolean hasGlossary ()

Returns whether it has the glossaries element.

Returns
  • whether it has the glossaries element

public boolean hasLastModifiedBy ()

Returns whether it has the last modified by.

Returns
  • whether it has the last modified by

public boolean hasNumberOfSourceWords ()

Returns whether it has the number of source words.

Returns
  • whether it has the number of source words

public boolean hasPercentComplete ()

Returns whether it has the percent complete.

Returns
  • whether it has the percent complete

public boolean hasSourceLanguage ()

Returns whether it has the source language.

Returns
  • whether it has the source language

public boolean hasTargetLanguage ()

Returns whether it has the target language.

Returns
  • whether it has the target language

public boolean hasTranslationMemory ()

Returns whether it has the tms element.

Returns
  • whether it has the tms element

public void setDeleted (Deleted deleted)

Sets the marker for deleted entries.

Parameters
deleted Marker for deleted entries or null to reset

public void setDocumentSource (DocumentSource documentSource)

Sets the document source.

Parameters
documentSource Document source or null to reset

public void setGlossary (GlossariesElement glossary)

Sets the glossaries element.

Parameters
glossary Glossaries element or null to reset

public void setLastModifiedBy (LastModifiedBy lastModifiedBy)

Sets the last modified by.

Parameters
lastModifiedBy Last modified by or null to reset

public void setNumberOfSourceWords (NumberOfSourceWords numberOfSourceWords)

Sets the number of source words.

Parameters
numberOfSourceWords Number of source words or null to reset

public void setPercentComplete (PercentComplete percentComplete)

Sets the percent complete.

Parameters
percentComplete Percent complete or null to reset

public void setSourceLanguage (SourceLanguage sourceLanguage)

Sets the source language.

Parameters
sourceLanguage Source language or null to reset

public void setTargetLanguage (TargetLanguage targetLanguage)

Sets the target language.

Parameters
targetLanguage Target language or null to reset

public void setTranslationMemory (TmsElement translationMemory)

Sets the tms element.

Parameters
translationMemory Tms element or null to reset

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.