info.magnolia.module.googlesitemap.bean
Class SiteMapEntry

java.lang.Object
  extended by info.magnolia.module.googlesitemap.bean.SiteMapEntry
All Implemented Interfaces:
Comparable<SiteMapEntry>

public class SiteMapEntry
extends Object
implements Comparable<SiteMapEntry>

Simple POJO containing relevant informations for the display. This bean is used as well for the XML and configuration rendering.


Field Summary
static String CHANGE_FREQ_NAME
           
static String FROM_NAME
           
static String PAGE_NAME
           
static String PATH_NAME
           
static String PRIORITY_NAME
           
static String SITE_ALERT_NAME
           
static String TO_NAME
           
 
Constructor Summary
SiteMapEntry()
           
SiteMapEntry(GoogleSiteMapConfiguration configuration, String loc, javax.jcr.Node page, int rootLevel, String changefreq, Double priority)
           
 
Method Summary
 int compareTo(SiteMapEntry obj)
          Implementation for the Comparable Interface.
 boolean equals(Object obj)
          Used for to check the unicity in the set.
 String getChangefreq()
           
 String getFrom()
           
 String getLastmod()
           
 int getLevel()
           
 String getLoc()
          Getter and Setter Section.
 String getPageName()
           
 String getPath()
           
 Double getPriority()
           
 String getTo()
           
 int hashCode()
           
 boolean isHide()
           
 boolean isHideChildren()
           
 boolean isStyleAlert()
           
 void setChangefreq(String changefreq)
           
 void setFrom(String from)
           
 void setHide(boolean hide)
           
 void setHideChildren(boolean hideChildren)
           
 void setLastmod(String lastmod)
           
 void setLevel(int level)
           
 void setLoc(String loc)
           
 void setPageName(String pageName)
           
 void setPath(String path)
           
 void setPriority(Double priority)
           
 void setStyleAlert(boolean styleAlert)
           
 void setTo(String to)
           
 String toStringDisplay()
           
 String toStringSite()
           
 String toStringVirtualUri()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIORITY_NAME

public static final String PRIORITY_NAME
See Also:
Constant Field Values

CHANGE_FREQ_NAME

public static final String CHANGE_FREQ_NAME
See Also:
Constant Field Values

SITE_ALERT_NAME

public static final String SITE_ALERT_NAME
See Also:
Constant Field Values

PATH_NAME

public static final String PATH_NAME
See Also:
Constant Field Values

PAGE_NAME

public static final String PAGE_NAME
See Also:
Constant Field Values

FROM_NAME

public static final String FROM_NAME
See Also:
Constant Field Values

TO_NAME

public static final String TO_NAME
See Also:
Constant Field Values
Constructor Detail

SiteMapEntry

public SiteMapEntry()

SiteMapEntry

public SiteMapEntry(GoogleSiteMapConfiguration configuration,
                    String loc,
                    javax.jcr.Node page,
                    int rootLevel,
                    String changefreq,
                    Double priority)
             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException
Method Detail

getLoc

public String getLoc()
Getter and Setter Section.


setLoc

public void setLoc(String loc)

getLastmod

public String getLastmod()

setLastmod

public void setLastmod(String lastmod)

getChangefreq

public String getChangefreq()

setChangefreq

public void setChangefreq(String changefreq)

getPriority

public Double getPriority()

setPriority

public void setPriority(Double priority)

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

getPath

public String getPath()

setPath

public void setPath(String path)

isStyleAlert

public boolean isStyleAlert()

setStyleAlert

public void setStyleAlert(boolean styleAlert)

getPageName

public String getPageName()

setPageName

public void setPageName(String pageName)

getFrom

public String getFrom()

setFrom

public void setFrom(String from)

getTo

public String getTo()

setTo

public void setTo(String to)

isHide

public boolean isHide()

setHide

public void setHide(boolean hide)

isHideChildren

public boolean isHideChildren()

setHideChildren

public void setHideChildren(boolean hideChildren)

toStringDisplay

public String toStringDisplay()

toStringSite

public String toStringSite()

toStringVirtualUri

public String toStringVirtualUri()

compareTo

public int compareTo(SiteMapEntry obj)
Implementation for the Comparable Interface.

Specified by:
compareTo in interface Comparable<SiteMapEntry>

equals

public boolean equals(Object obj)
Used for to check the unicity in the set.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.