F - Nested feed type.public class FeedLink<F extends BaseFeed<?,?>> extends Link
Link.AtomHandlerExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerILink.Rel, ILink.Type| Modifier and Type | Field and Description |
|---|---|
protected Integer |
countHint
Count hint.
|
protected BaseFeed<?,?> |
feed
Nested feed (optional).
|
protected Class<F> |
feedClass
Nested feed class.
|
protected boolean |
readOnly
Read only flag.
|
content, etag, href, hrefLang, length, rel, title, titleLang, typexmlBloblocalName, namespace| Constructor and Description |
|---|
FeedLink()
Constructs a feed link that points to a
Feed. |
FeedLink(Class<F> feedClass)
Constructs a feed link that points to the given feed type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for the extension.
|
Integer |
getCountHint() |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description.
|
F |
getFeed() |
Class<F> |
getFeedClass() |
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
String namespace,
String localName,
Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
boolean |
getReadOnly() |
String |
getType()
Returns the mime type of the link.
|
void |
setCountHint(Integer v) |
void |
setFeed(F v) |
void |
setReadOnly(boolean v) |
protected void |
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
|
generateAtom, generateRss, getContent, getEtag, getHref, getHrefLang, getLength, getRel, getTitle, getTitleLang, matches, setContent, setEtag, setHref, setHrefLang, setLength, setRel, setTitle, setTitleLang, setTypeaddExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChildconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateprotected boolean readOnly
protected Integer countHint
protected BaseFeed<?,?> feed
public FeedLink()
Feed.public boolean getReadOnly()
public void setReadOnly(boolean v)
public Integer getCountHint()
public void setCountHint(Integer v)
public F getFeed()
public void setFeed(F v)
public static ExtensionDescription getDefaultDescription()
public String getType()
ILinkprotected void visitChildren(ExtensionVisitor ev) throws ExtensionVisitor.StoppedException
ExtensionPointvisitChildren in class ExtensionPointev - the extension visitor.ExtensionVisitor.StoppedExceptionpublic void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException
Extensiongenerate in interface Extensiongenerate in class Linkw - XML writerextProfile - extension profileIOExceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
AbstractExtensionAbstractExtension.AttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class LinkextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributesCopyright © 2012. All Rights Reserved.