Class LinkItem

java.lang.Object
org.apache.maven.doxia.site.LinkItem
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
Banner, Logo, MenuItem

public class LinkItem extends Object implements Serializable, Cloneable
A link in the navigation.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • LinkItem

      public LinkItem()
  • Method Details

    • clone

      public LinkItem clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      LinkItem
    • equals

      public boolean equals(Object other)
      Method equals.
      Overrides:
      equals in class Object
      Parameters:
      other - a other object.
      Returns:
      boolean
    • getHref

      public String getHref()
      Get the href to use for the link.
      Returns:
      String
    • getImage

      public Image getImage()
      Get the image for the link.
      Returns:
      Image
    • getName

      public String getName()
      Get the name to display for the link.
      Returns:
      String
    • getTarget

      public String getTarget()
      Get where the new document will be displayed when the user follows a link, i.e. _blank opens the new document in a new window.
      Returns:
      String
    • hashCode

      public int hashCode()
      Method hashCode.
      Overrides:
      hashCode in class Object
      Returns:
      int
    • setHref

      public void setHref(String href)
      Set the href to use for the link.
      Parameters:
      href - a href object.
    • setImage

      public void setImage(Image image)
      Set the image for the link.
      Parameters:
      image - a image object.
    • setName

      public void setName(String name)
      Set the name to display for the link.
      Parameters:
      name - a name object.
    • setTarget

      public void setTarget(String target)
      Set where the new document will be displayed when the user follows a link, i.e. _blank opens the new document in a new window.
      Parameters:
      target - a target object.
    • toString

      public String toString()
      Method toString.
      Overrides:
      toString in class Object
      Returns:
      String