Class WebPage

    • Constructor Detail

      • WebPage

        public WebPage()
    • Method Detail

      • of

        public static WebPage of​(String name)
        Method for creating WebPage only with name (this can be useful for really simple sitemaps or with combination of default settings set on SitemapGenerator)
        Parameters:
        name - Name
        Returns:
        WebPage instance
      • of

        public static WebPage of​(java.util.function.Supplier<String> nameSupplier)
        Method for creating WebPage only with name (this can be useful for really simple sitemaps or with combination of default settings set on SitemapGenerator)
        Parameters:
        nameSupplier - Name supplier
        Returns:
        WebPage instance
      • setImages

        public void setImages​(List<Image> images)
      • getShortName

        public String getShortName()
      • setShortName

        public void setShortName​(String shortName)
      • getShortDescription

        public String getShortDescription()
      • setShortDescription

        public void setShortDescription​(String shortDescription)
      • setName

        public void setName​(String name)
      • setAlternateNames

        public void setAlternateNames​(Map<String,​String> alternateNames)
      • setLastMod

        public void setLastMod​(Date lastMod)
      • setChangeFreq

        public void setChangeFreq​(ChangeFreq changeFreq)
      • setPriority

        public void setPriority​(Double priority)
      • constructName

        public String constructName()
        Constructs name from dir and extension (if available)
        Returns:
        Name
      • getLastMod

        public Date getLastMod()
      • getChangeFreq

        public ChangeFreq getChangeFreq()
      • getPriority

        public Double getPriority()
      • getDir

        public String getDir()
      • setDir

        public void setDir​(String dir)
      • getExtension

        public String getExtension()
      • setExtension

        public void setExtension​(String extension)
      • compareTo

        public int compareTo​(WebPage o)
        Compare WebPage first by priority (in descending order - higher priority is first), then by shortName (in ascending order). Priority and / or shortName can be null. WebPages with null priority are at the end.
        Specified by:
        compareTo in interface Comparable<WebPage>
        Parameters:
        o - Other WebPage
        Returns:
        -1, 0, 1