Class Link

    • Constructor Detail

      • Link

        public Link()
        Constructor
      • Link

        public Link​(String href)
        Constructor
        Parameters:
        href - href
    • Method Detail

      • getHref

        public String getHref()
        Get the href
        Returns:
        href
      • setHref

        public void setHref​(String href)
        Set the href
        Parameters:
        href - href
      • getRel

        public String getRel()
        Get the rel
        Returns:
        rel
      • setRel

        public void setRel​(String rel)
        Set the rel
        Parameters:
        rel - rel
      • getType

        public String getType()
        Get the type
        Returns:
        type
      • setType

        public void setType​(String type)
        Set the type
        Parameters:
        type - type
      • getHreflang

        public String getHreflang()
        Get the href lang
        Returns:
        href lang
      • setHreflang

        public void setHreflang​(String hreflang)
        Set the href lang
        Parameters:
        hreflang - href lang
      • getTitle

        public String getTitle()
        Get the title
        Returns:
        title
      • setTitle

        public void setTitle​(String title)
        Set the title
        Parameters:
        title - title
      • getLength

        public Integer getLength()
        Get the length
        Returns:
        length
      • setLength

        public void setLength​(Integer length)
        Set the length
        Parameters:
        length - length
      • toLinks

        public static List<Link> toLinks​(Object linksObject)
        Convert the links object to a list of links
        Parameters:
        linksObject - links object
        Returns:
        list of links