Rakesh API

org.rakeshv.xml.album
Class Image

java.lang.Object
  extended by org.rakeshv.xml.album.Image
All Implemented Interfaces:
java.io.Serializable

public class Image
extends java.lang.Object
implements java.io.Serializable

A Java bean that represents an image in the photo images XML file. Images are usually used to represent the full image as well as a thumbnail image.

© Copyright 2003 Rakesh Vidyadharan

Version:
$Id: Image.java,v 1.2 2004/05/26 11:42:40 rakesh Exp $
Author:
Rakesh Vidyadharan 2003 October 31
See Also:
Serialized Form

Field Summary
private  java.lang.String altText
          The altText property for an image.
private  java.lang.String fileLocation
          The fileLocation attribute for an image.
private  double height
          The height property for an image.
private  double width
          The width property for an image.
 
Constructor Summary
private Image()
          Default constructor.
  Image(java.lang.String fileLocation)
          The only public constructor that is supported.
 
Method Summary
 boolean equals(java.lang.Object object)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getAltText()
          Returns altText.
 java.lang.String getFileLocation()
          Returns fileLocation.
 double getHeight()
          Returns height.
 double getWidth()
          Returns width.
 int hashCode()
          Returns a hash code value for the object.
 void setAltText(java.lang.String altText)
          Set altText.
 void setFileLocation(java.lang.String fileLocation)
          Set fileLocation.
 void setHeight(double height)
          Set height.
 void setWidth(double width)
          Set width.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fileLocation

private java.lang.String fileLocation
The fileLocation attribute for an image.


width

private double width
The width property for an image.


height

private double height
The height property for an image.


altText

private java.lang.String altText
The altText property for an image.

Constructor Detail

Image

private Image()
Default constructor. This method cannot be directly involved. New instances of this class should always be created with a proper fileLocation value.


Image

public Image(java.lang.String fileLocation)
The only public constructor that is supported. Set the value of the instance variable fileLocation to the specified value.

Parameters:
fileLocation - - The fileLocation value to use for this image.
Method Detail

equals

public boolean equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. Returns true if the specified object is an instance of Image, and the values of fileLocation are the same.

Overrides:
equals in class java.lang.Object
Parameters:
object - - The object that is to be compared with this instance.

hashCode

public int hashCode()
Returns a hash code value for the object. Returns the hash code associated with the fileLocation instance variable.

Overrides:
hashCode in class java.lang.Object
Returns:
int - The hash code value.

toString

public java.lang.String toString()
Returns a string representation of the object. Return the value of fileLocation.

Overrides:
toString in class java.lang.Object
Returns:
String - The string represenetation of this instance.

getFileLocation

public final java.lang.String getFileLocation()
Returns fileLocation.

Returns:
String - The value/reference of/to fileLocation.

setFileLocation

public final void setFileLocation(java.lang.String fileLocation)
Set fileLocation.

Parameters:
fileLocation - - The value to set.

getWidth

public final double getWidth()
Returns width.

Returns:
double - The value/reference of/to width.

setWidth

public final void setWidth(double width)
Set width.

Parameters:
width - - The value to set.

getHeight

public final double getHeight()
Returns height.

Returns:
double - The value/reference of/to height.

setHeight

public final void setHeight(double height)
Set height.

Parameters:
height - - The value to set.

getAltText

public final java.lang.String getAltText()
Returns altText.

Returns:
String - The value/reference of/to altText.

setAltText

public final void setAltText(java.lang.String altText)
Set altText.

Parameters:
altText - - The value to set.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan