info.bliki.wiki.model
Class ImageFormat

java.lang.Object
  extended by info.bliki.wiki.model.ImageFormat

public class ImageFormat
extends java.lang.Object

Represents an [[Image:....]] wiki link with all the possible attributes. Copied from Patch #1488331 sf.net user: o_rossmueller; modified by axelclk http://sourceforge.net/tracker/index.php?func=detail&aid=1488331&group_id=128886&atid=713150


Constructor Summary
ImageFormat()
           
 
Method Summary
 java.lang.String getCaption()
           
 java.lang.String getFilename()
           
static ImageFormat getImageFormat(java.lang.String rawImageLink, java.lang.String imageNamespace)
           
 java.lang.String getLocation()
           
 java.lang.String getNamespace()
           
 int getSize()
          Get the size of the image in pixel (example: "600px")
 java.lang.String getSizeStr()
          Get the size of the image as a string
 java.lang.String getType()
           
 void setCaption(java.lang.String caption)
           
 void setFilename(java.lang.String filename)
           
 void setLocation(java.lang.String location)
           
 void setNamespace(java.lang.String namespace)
           
 void setSize(java.lang.String size)
          Set the size of the image in pixel.
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFormat

public ImageFormat()
Method Detail

getCaption

public java.lang.String getCaption()

setCaption

public void setCaption(java.lang.String caption)

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String filename)

getLocation

public java.lang.String getLocation()

setLocation

public void setLocation(java.lang.String location)

getSize

public int getSize()
Get the size of the image in pixel (example: "600px")

Parameters:
size -

getSizeStr

public java.lang.String getSizeStr()
Get the size of the image as a string

Parameters:
size -

setSize

public void setSize(java.lang.String size)
Set the size of the image in pixel. If the given string ends with "px" additionally calculate the integer value of the size (example: "600px")

Parameters:
size -

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getImageFormat

public static ImageFormat getImageFormat(java.lang.String rawImageLink,
                                         java.lang.String imageNamespace)

getNamespace

public java.lang.String getNamespace()

setNamespace

public void setNamespace(java.lang.String namespace)