org.opencms.site.xmlsitemap
Class CmsXmlSitemapGenerator.ResultEntry

java.lang.Object
  extended by org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator.ResultEntry
Enclosing class:
CmsXmlSitemapGenerator

protected class CmsXmlSitemapGenerator.ResultEntry
extends java.lang.Object

A bean that consists of a sitemap URL bean and a priority score, to determine which of multiple entries with the same URL are to be preferred.


Constructor Summary
CmsXmlSitemapGenerator.ResultEntry(CmsXmlSitemapUrlBean urlBean, int priority)
          Creates a new result entry.
 
Method Summary
 int getPriority()
          Gets the internal priority used to determine which of multiple entries with the same URL to use.
 CmsXmlSitemapUrlBean getUrlBean()
          Gets the URL bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsXmlSitemapGenerator.ResultEntry

public CmsXmlSitemapGenerator.ResultEntry(CmsXmlSitemapUrlBean urlBean,
                                          int priority)
Creates a new result entry.

Parameters:
urlBean - the url bean
priority - the internal priority
Method Detail

getPriority

public int getPriority()
Gets the internal priority used to determine which of multiple entries with the same URL to use.

This has nothing to do with the priority defined in the URL beans themselves!

Returns:
the internal priority

getUrlBean

public CmsXmlSitemapUrlBean getUrlBean()
Gets the URL bean.

Returns:
the URL bean