public class CmsXmlSitemapUrlBean
extends java.lang.Object
构造器和说明 |
---|
CmsXmlSitemapUrlBean(java.lang.String url,
long lastModified,
java.lang.String changeFrequency,
double priority)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getChangeFrequency()
Gets the change frequency string.
|
java.util.Date |
getDateLastModified()
Gets the last modification date.
|
CmsResource |
getDetailPageResource()
Gets the detail page resource in case the link is the link to a detail page, else returns null.
|
java.lang.String |
getFormattedDate()
Gets the last modification date formatted as W3C datetime.
|
CmsResource |
getOriginalResource()
Gets the original resource belonging to the link.
|
double |
getPriority()
Gets the priority for the page.
|
java.lang.String |
getUrl()
Gets the page URL.
|
void |
setDetailPageResource(CmsResource detailPageResource)
Sets the detail page resource.
|
void |
setOriginalResource(CmsResource resource)
Sets the original resource.
|
void |
writeChangefreq(java.lang.StringBuffer buffer)
Writes the changefreq node to the buffer.
|
void |
writeElement(java.lang.StringBuffer buffer,
java.lang.String tag,
java.lang.String content)
Writes a single XML element with text content to a string buffer.
|
void |
writeLastmod(java.lang.StringBuffer buffer)
Writes the lastmod node to the buffer.
|
void |
writePriority(java.lang.StringBuffer buffer)
Writes the priority node to the buffer.
|
public CmsXmlSitemapUrlBean(java.lang.String url, long lastModified, java.lang.String changeFrequency, double priority)
url
- the URLlastModified
- the last modification datechangeFrequency
- the change frequency stringpriority
- the prioritypublic java.lang.String getChangeFrequency()
public java.util.Date getDateLastModified()
public CmsResource getDetailPageResource()
public java.lang.String getFormattedDate()
public CmsResource getOriginalResource()
In case this is a link to a detail page, the resource will be the resource displayed on the detail page
public double getPriority()
public java.lang.String getUrl()
public void setDetailPageResource(CmsResource detailPageResource)
detailPageResource
- the detail page resourcepublic void setOriginalResource(CmsResource resource)
resource
- the original resourcepublic void writeChangefreq(java.lang.StringBuffer buffer)
buffer
- the buffer to write topublic void writeElement(java.lang.StringBuffer buffer, java.lang.String tag, java.lang.String content)
buffer
- the string buffer to write totag
- the XML tag namecontent
- the content of the XML elementpublic void writeLastmod(java.lang.StringBuffer buffer)
buffer
- the buffer to write topublic void writePriority(java.lang.StringBuffer buffer)
buffer
- the buffer to write to