Package org.apache.maven.doxia.site
Class LinkItem
- java.lang.Object
-
- org.apache.maven.doxia.site.LinkItem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class LinkItem extends java.lang.Object implements java.io.Serializable, java.lang.CloneableA link in the navigation.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkItemclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetHref()Get the href to use for the link.ImagegetImage()Get the image for the link.java.lang.StringgetName()Get the name to display for the link.java.lang.StringgetTarget()Get where the new document will be displayed when the user follows a link, i.e.inthashCode()Method hashCode.voidsetHref(java.lang.String href)Set the href to use for the link.voidsetImage(Image image)Set the image for the link.voidsetName(java.lang.String name)Set the name to display for the link.voidsetTarget(java.lang.String target)Set where the new document will be displayed when the user follows a link, i.e.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
clone
public LinkItem clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- LinkItem
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- a other object.- Returns:
- boolean
-
getHref
public java.lang.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 java.lang.String getName()
Get the name to display for the link.- Returns:
- String
-
getTarget
public java.lang.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:
hashCodein classjava.lang.Object- Returns:
- int
-
setHref
public void setHref(java.lang.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(java.lang.String name)
Set the name to display for the link.- Parameters:
name- a name object.
-
setTarget
public void setTarget(java.lang.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 java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-