E
- Nested entry type.public class EntryLink<E extends BaseEntry<?>> extends Link
Link.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
ILink.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, setType
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public 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()
ILink
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extension
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, 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
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes