public class DocumentEntry extends MediaEntry<DocumentEntry>
BaseEntry.AtomHandler, BaseEntry.EntryState
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
xmlBlob
localName, namespace
Constructor and Description |
---|
DocumentEntry()
Default mutable constructor.
|
DocumentEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing
BaseEntry instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
protected void |
validate()
Checks the attributes to see if there are any problems.
|
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService, updateMedia
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getPlainTextContent, getPubControl, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSelectedFields, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildren
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCanEdit, getContent, getEdited, getEditLink, getPublished, getResumableEditMediaLink, getSelectedFields, getSummary, setCanEdit, setEdited, setPublished, setSelectedFields
addLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionId
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Kind.Adaptor
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)
public Deleted getDeleted()
public void setDeleted(Deleted deleted)
deleted
- marker for deleted entries or null
to resetpublic boolean hasDeleted()
public DocumentSource getDocumentSource()
public void setDocumentSource(DocumentSource documentSource)
documentSource
- document source or null
to resetpublic boolean hasDocumentSource()
public GlossariesElement getGlossary()
public void setGlossary(GlossariesElement glossary)
glossary
- glossaries element or null
to resetpublic boolean hasGlossary()
public LastModifiedBy getLastModifiedBy()
public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
lastModifiedBy
- last modified by or null
to resetpublic boolean hasLastModifiedBy()
public NumberOfSourceWords getNumberOfSourceWords()
public void setNumberOfSourceWords(NumberOfSourceWords numberOfSourceWords)
numberOfSourceWords
- number of source words or null
to
resetpublic boolean hasNumberOfSourceWords()
public PercentComplete getPercentComplete()
public void setPercentComplete(PercentComplete percentComplete)
percentComplete
- percent complete or null
to resetpublic boolean hasPercentComplete()
public SourceLanguage getSourceLanguage()
public void setSourceLanguage(SourceLanguage sourceLanguage)
sourceLanguage
- source language or null
to resetpublic boolean hasSourceLanguage()
public TargetLanguage getTargetLanguage()
public void setTargetLanguage(TargetLanguage targetLanguage)
targetLanguage
- target language or null
to resetpublic boolean hasTargetLanguage()
public TmsElement getTranslationMemory()
public void setTranslationMemory(TmsElement translationMemory)
translationMemory
- tms element or null
to resetpublic boolean hasTranslationMemory()
public Link getAccessControlListLink()
null
for none.protected void validate()
AbstractExtension
validate
in class AbstractExtension
public java.lang.String toString()
toString
in class java.lang.Object