|
|||||||||
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.analytics.AnalyticsLink
public class AnalyticsLink
Extends the base Link class with Analytics extensions.
Nested Class Summary | |
---|---|
static class |
AnalyticsLink.Rel
Link relation type. |
Nested classes/interfaces inherited from class com.google.gdata.data.Link |
---|
Link.AtomHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from interface com.google.gdata.data.ILink |
---|
ILink.Type |
Constructor Summary | |
---|---|
AnalyticsLink()
Default mutable constructor. |
|
AnalyticsLink(java.lang.String targetKind)
Immutable constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable. |
XmlParser.ElementHandler |
getHandler(ExtensionProfile p,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the AttributesHandler to handle
parsing the extension. |
java.lang.String |
getTargetKind()
Returns the kind of feed/entry the href is pointing to. |
int |
hashCode()
|
boolean |
hasTargetKind()
Returns whether it has the kind of feed/entry the href is pointing to. |
void |
setTargetKind(java.lang.String targetKind)
Sets the kind of feed/entry the href is pointing to. |
java.lang.String |
toString()
|
Methods inherited from class com.google.gdata.data.Link |
---|
generate, generateAtom, generateRss, getContent, getEtag, getHref, getHrefLang, getLength, getRel, getTitle, getTitleLang, getType, matches, setContent, setEtag, setHref, setHrefLang, setLength, setRel, setTitle, setTitleLang, setType |
Methods inherited from class com.google.gdata.data.ExtensionPoint |
---|
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnalyticsLink()
public AnalyticsLink(java.lang.String targetKind)
targetKind
- kind of feed/entry the href is pointing to.Method Detail |
---|
public java.lang.String getTargetKind()
public void setTargetKind(java.lang.String targetKind)
targetKind
- kind of feed/entry the href is pointing to or
null
to resetpublic boolean hasTargetKind()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public XmlParser.ElementHandler getHandler(ExtensionProfile p, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtension
AttributesHandler
to handle
parsing the extension.
getHandler
in interface Extension
getHandler
in class Link
p
- 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 |