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.Cloneable
A 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 LinkItem
clone()
Method clone.boolean
equals(java.lang.Object other)
Method equals.java.lang.String
getHref()
Get the href to use for the link.Image
getImage()
Get the image for the link.java.lang.String
getName()
Get the name to display for the link.java.lang.String
getTarget()
Get where the new document will be displayed when the user follows a link, i.e.int
hashCode()
Method hashCode.void
setHref(java.lang.String href)
Set the href to use for the link.void
setImage(Image image)
Set the image for the link.void
setName(java.lang.String name)
Set the name to display for the link.void
setTarget(java.lang.String target)
Set where the new document will be displayed when the user follows a link, i.e.java.lang.String
toString()
Method toString.
-
-
-
Method Detail
-
clone
public LinkItem clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- LinkItem
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equals
in 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:
hashCode
in 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:
toString
in classjava.lang.Object
- Returns:
- String
-
-