Package org.apache.maven.doxia.site
Class Image
- java.lang.Object
-
- org.apache.maven.doxia.site.Image
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Image extends java.lang.Object implements java.io.Serializable, java.lang.CloneableAn image. Generates an "img" element (https://html.spec.whatwg.org/#the-img-element).- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Imageclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetAlt()Get the alternative text to use.java.lang.StringgetHeight()Get the height to use.java.lang.StringgetPosition()Get where to place the image relative to the displayed name (left or right).java.lang.StringgetSrc()Get the source location.java.lang.StringgetStyle()Get the style to use.java.lang.StringgetWidth()Get the width to use.inthashCode()Method hashCode.voidsetAlt(java.lang.String alt)Set the alternative text to use.voidsetHeight(java.lang.String height)Set the height to use.voidsetPosition(java.lang.String position)Set where to place the image relative to the displayed name (left or right).voidsetSrc(java.lang.String src)Set the source location.voidsetStyle(java.lang.String style)Set the style to use.voidsetWidth(java.lang.String width)Set the width to use.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
clone
public Image clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Image
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- a other object.- Returns:
- boolean
-
getAlt
public java.lang.String getAlt()
Get the alternative text to use. Ends up in the "img alt" attribute (https://html.spec.whatwg.org/#alt).(.- Returns:
- String
-
getHeight
public java.lang.String getHeight()
Get the height to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "height: ".- Returns:
- String
-
getPosition
public java.lang.String getPosition()
Get where to place the image relative to the displayed name (left or right).- Returns:
- String
-
getSrc
public java.lang.String getSrc()
Get the source location. Ends up in the "img src" attribute (https://html.spec.whatwg.org/#attr-img-src).- Returns:
- String
-
getStyle
public java.lang.String getStyle()
Get the style to use. Ends up in the "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) as is.- Returns:
- String
-
getWidth
public java.lang.String getWidth()
Get the width to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "width: ".- Returns:
- String
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
setAlt
public void setAlt(java.lang.String alt)
Set the alternative text to use. Ends up in the "img alt" attribute (https://html.spec.whatwg.org/#alt).(.- Parameters:
alt- a alt object.
-
setHeight
public void setHeight(java.lang.String height)
Set the height to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "height: ".- Parameters:
height- a height object.
-
setPosition
public void setPosition(java.lang.String position)
Set where to place the image relative to the displayed name (left or right).- Parameters:
position- a position object.
-
setSrc
public void setSrc(java.lang.String src)
Set the source location. Ends up in the "img src" attribute (https://html.spec.whatwg.org/#attr-img-src).- Parameters:
src- a src object.
-
setStyle
public void setStyle(java.lang.String style)
Set the style to use. Ends up in the "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) as is.- Parameters:
style- a style object.
-
setWidth
public void setWidth(java.lang.String width)
Set the width to use. Added to the generated "img style" attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by "width: ".- Parameters:
width- a width object.
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-