|
|||||||||
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.Link
com.google.gdata.data.extensions.EntryLink<E>
E
- Nested entry type.public class EntryLink<E extends BaseEntry<?>>
The EntryLink class defines the object model for a link entity that refers to a GData entry. The entry content may be included inline via child elements of the entry link or only included by reference.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.Link |
---|
Link.AtomHandler, Link.Rel, Link.Type |
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 | |
---|---|
protected BaseEntry<?> |
entry
Nested entry (optional). |
protected java.lang.Class<E> |
entryClass
Nested entry class. |
protected boolean |
readOnly
Read only flag. |
Fields inherited from class com.google.gdata.data.Link |
---|
content, etag, href, hrefLang, length, rel, title, titleLang, type |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
EntryLink()
Constructs an entry link that points to an Entry . |
|
EntryLink(java.lang.Class<E> entryClass)
Constructs an entry link that points to the given entry type. |
Method Summary | |
---|---|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for the extension. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description. |
E |
getEntry()
|
java.lang.Class<E> |
getEntryClass()
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle
parsing the extension. |
boolean |
getReadOnly()
|
java.lang.String |
getType()
Returns the mime type of the link. |
void |
setEntry(E v)
|
void |
setReadOnly(boolean v)
|
protected void |
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point. |
Methods inherited from class com.google.gdata.data.Link |
---|
generateAtom, generateRss, getContent, getEtag, getHref, getHrefLang, getLength, getRel, getTitle, getTitleLang, matches, setContent, setEtag, setHref, setHrefLang, setLength, setRel, setTitle, setTitleLang, setType |
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 |
---|
protected boolean readOnly
protected BaseEntry<?> entry
protected final java.lang.Class<E extends BaseEntry<?>> entryClass
Constructor Detail |
---|
public EntryLink()
Entry
.
public EntryLink(java.lang.Class<E> entryClass)
entryClass
- Entry class.Method Detail |
---|
public boolean getReadOnly()
public void setReadOnly(boolean v)
public E getEntry()
public void setEntry(E v)
public java.lang.Class<E> getEntryClass()
public static ExtensionDescription getDefaultDescription()
public java.lang.String getType()
ILink
getType
in interface ILink
getType
in class Link
protected void visitChildren(ExtensionVisitor ev) throws ExtensionVisitor.StoppedException
ExtensionPoint
visitChildren
in class ExtensionPoint
ev
- the extension visitor.
ExtensionVisitor.StoppedException
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extension
generate
in interface Extension
generate
in class Link
w
- XML writerextProfile
- extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtension
AbstractExtension.AttributesHandler
to handle
parsing the extension.
getHandler
in interface Extension
getHandler
in class Link
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |