public class Entry extends ExtensibleElement implements SupportsLinks
transientProperties| Constructor and Description |
|---|
Entry() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AtomModelVisitor visitor)
Accept a visitor.
|
void |
addLink(Link link)
Add a hypermedia link.
|
void |
addLink(String rel,
URI href)
Add a hypermedia link.
|
void |
addTemplatedLink(String rel,
String template)
Add a templated link.
|
List<Person> |
getAuthors()
The author of the entry.
|
List<Category> |
getCategories()
information about a category associated with an entry.
|
ResultConfidence |
getConfidence()
The confidence of the result, if this entry represents a search result.
|
Content |
getContent()
The content of the entry.
|
List<Person> |
getContributors()
information about a category associated with the entry
|
Map<QName,String> |
getExtensionAttributes() |
URI |
getId()
a permanent, universally unique identifier for the entry.
|
Link |
getLink(String rel)
Get a link by its rel.
|
List<Link> |
getLinks()
a reference from a entry to a Web resource.
|
List<Link> |
getLinks(String rel)
Get a list of links by rel.
|
Date |
getPublished()
instant in time associated with an event early in the life cycle of the entry.
|
String |
getRights()
information about rights held in and over the entry.
|
Float |
getScore()
The relevance score, if this entry represents a search result.
|
String |
getTitle()
a human-readable title for the entry
|
Date |
getUpdated()
the most recent instant in time when the entry was modified in a way the publisher considers significant.
|
void |
setAuthors(List<Person> authors)
The author of the entry.
|
void |
setCategories(List<Category> categories)
information about a category associated with an entry.
|
void |
setConfidence(ResultConfidence confidence)
The confidence of the result, if this entry represents a search result.
|
void |
setContent(Content content)
The content of the entry.
|
void |
setContributors(List<Person> contributors)
information about a category associated with the entry
|
void |
setExtensionAttributes(Map<QName,String> extensionAttributes) |
void |
setId(URI id)
a permanent, universally unique identifier for the entry.
|
void |
setLinks(List<Link> links)
a reference from a entry to a Web resource.
|
void |
setPublished(Date published)
instant in time associated with an event early in the life cycle of the entry.
|
void |
setRights(String rights)
information about rights held in and over the entry.
|
void |
setScore(Float score)
The relevance score, if this entry represents a search result.
|
void |
setTitle(String title)
a human-readable title for the entry
|
void |
setUpdated(Date updated)
the most recent instant in time when the entry was modified in a way the publisher considers significant.
|
addExtensionElement, findExtensionOfType, findExtensionsOfType, getExtensionElements, getTransientProperties, getTransientProperty, setExtensionElements, setTransientPropertygetBase, getLang, setBase, setLangpublic List<Person> getAuthors()
public void setAuthors(List<Person> authors)
authors - The author of the entry.public List<Category> getCategories()
public void setCategories(List<Category> categories)
categories - information about a category associated with an entry.public Content getContent()
public void setContent(Content content)
content - The content of the entry.public List<Person> getContributors()
public void setContributors(List<Person> contributors)
contributors - information about a category associated with the entrypublic URI getId()
public void setId(URI id)
id - a permanent, universally unique identifier for the entry.public Float getScore()
public void setScore(Float score)
score - The relevance score.public ResultConfidence getConfidence()
public void setConfidence(ResultConfidence confidence)
confidence - The confidence of the result, if this entry represents a search result.public List<Link> getLinks()
getLinks in interface SupportsLinkspublic void setLinks(List<Link> links)
setLinks in interface SupportsLinkslinks - a reference from a entry to a Web resource.public void addLink(Link link)
addLink in interface SupportsLinkslink - The hypermedia link.public void addLink(String rel, URI href)
addLink in interface SupportsLinksrel - The link rel.href - The target URI.public void addTemplatedLink(String rel, String template)
addTemplatedLink in interface SupportsLinksrel - The link rel.template - The link template.public Link getLink(String rel)
getLink in interface SupportsLinksrel - The link rel.public List<Link> getLinks(String rel)
getLinks in interface SupportsLinksrel - The rel of the links.public Date getPublished()
public void setPublished(Date published)
published - instant in time associated with an event early in the life cycle of the entry.public String getRights()
public void setRights(String rights)
rights - information about rights held in and over the entry.public String getTitle()
public void setTitle(String title)
title - a human-readable title for the entrypublic Date getUpdated()
public void setUpdated(Date updated)
updated - the most recent instant in time when the entry was modified in a way the publisher considers significant.public void accept(AtomModelVisitor visitor)
visitor - The visitor to accept.Copyright © 2017. All rights reserved.