E - Nested entry type.public class EntryLink<E extends BaseEntry<?>> extends Link
Link.AtomHandlerExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerILink.Rel, ILink.Type| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
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) |
generateAtom, generateRss, getContent, getEtag, getHref, getHrefLang, getLength, getRel, getTitle, getTitleLang, matches, setContent, setEtag, setHref, setHrefLang, setLength, setRel, setTitle, setTitleLang, setTypeaddExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visitdisableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutablepublic EntryLink()
Entry.public EntryLink(java.lang.Class<E> entryClass)
entryClass - Entry class.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()
ILinkpublic void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extensionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtensionAttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class LinkextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributes