|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.BaseEntry<E>
com.google.gdata.data.media.MediaEntry<DocumentListEntry>
com.google.gdata.data.docs.DocumentListEntry
public class DocumentListEntry
An entry representing a single document of any type within a
DocumentListFeed.
| Nested Class Summary | |
|---|---|
static class |
DocumentListEntry.MediaType
Represents the MIME types supported by the doclist GData feed |
| Nested classes/interfaces inherited from class com.google.gdata.data.BaseEntry |
|---|
BaseEntry.AtomHandler, BaseEntry.EntryState |
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary | |
|---|---|
static java.lang.String |
DOCUMENT_NAMESPACE
|
static java.lang.String |
FOLDERS_NAMESPACE
|
static java.lang.String |
PARENT_NAMESPACE
|
static Category |
UNKNOWN_CATEGORY
Category used to label entries which are of document type. |
static java.lang.String |
UNKNOWN_KIND
Kind category term used to label the entries which are of document type. |
static java.lang.String |
UNKNOWN_LABEL
Label for category. |
| Fields inherited from class com.google.gdata.data.BaseEntry |
|---|
state |
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
DocumentListEntry()
Constructs a new uninitialized entry, to be populated by the GData parsers. |
|
DocumentListEntry(BaseEntry<?> sourceEntry)
Constructs a new entry by doing a shallow copy from another BaseEntry instance. |
|
| Method Summary | |
|---|---|
void |
addFolder(Person owner,
java.lang.String folderName)
Adds a user-specific folder that parents this document |
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. |
AclFeed |
getAclFeed()
|
DocumentListAclFeedLink |
getAclFeedLink()
|
Link |
getDocumentLink()
Gets the link with which you can open up the document in a Web browser. |
java.util.Set<java.lang.String> |
getFolders()
|
java.lang.String |
getKey()
Gets the non-user-friendly key that is used to access the document feed. |
protected static java.lang.String |
getMimeTypeFromFileName(java.lang.String fileName)
Returns the mime type given a file name. |
java.util.List<Link> |
getParentLinks()
|
boolean |
isStarred()
|
boolean |
isTrashed()
|
void |
setFile(java.io.File file)
Deprecated. Prefer setFile(File, String) |
void |
setFile(java.io.File file,
java.lang.String mimeType)
Associate a File with this entry with the specified mime type |
void |
setStarred(boolean starred)
Sets the starred status of this document for the user this feed request has been authenticated under. |
void |
setTrashed(boolean trashed)
Sets the trashed status of this document for the user this feed request has been authenticated under. |
| Methods inherited from class com.google.gdata.data.media.MediaEntry |
|---|
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService, updateMedia |
| Methods inherited from class com.google.gdata.data.BaseEntry |
|---|
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getLink, getLinks, getLinks, getPlainTextContent, getPubControl, getPublished, getRights, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setPubControl, setPublished, setRights, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildren |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DOCUMENT_NAMESPACE
public static final java.lang.String UNKNOWN_LABEL
public static final java.lang.String UNKNOWN_KIND
public static final Category UNKNOWN_CATEGORY
public static final java.lang.String FOLDERS_NAMESPACE
public static final java.lang.String PARENT_NAMESPACE
| Constructor Detail |
|---|
public DocumentListEntry()
public DocumentListEntry(BaseEntry<?> sourceEntry)
| Method Detail |
|---|
protected static java.lang.String getMimeTypeFromFileName(java.lang.String fileName)
java.lang.IllegalArgumentException - if the mime type is not known
given the file namepublic void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions in interface Kind.AdaptordeclareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)public Link getDocumentLink()
public java.lang.String getKey()
http://docs.google.com/getdoc?id={id}
http://spreadsheets.google.com/ccc?key={id}
@Deprecated public void setFile(java.io.File file)
public void setFile(java.io.File file,
java.lang.String mimeType)
public void setStarred(boolean starred)
starred - true if the document should be starredpublic boolean isStarred()
public void setTrashed(boolean trashed)
trashed - true if the document should be trashedpublic boolean isTrashed()
public void addFolder(Person owner,
java.lang.String folderName)
owner - the owner of the folderfolderName - the name of the folderpublic java.util.Set<java.lang.String> getFolders()
public DocumentListAclFeedLink getAclFeedLink()
public AclFeed getAclFeed()
public java.util.List<Link> getParentLinks()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||