|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.xml.album.Photo
public class Photo
A Java bean that represents a photo. Bean fields map all the
first-level child elements under the photo node in
the XML tree.
© Copyright 2003 Rakesh Vidyadharan
| Field Summary | |
|---|---|
private java.lang.String |
description
The description element value that is used to
describe the photo. |
private Image |
fullImage
The fullImage element value that is stored as an
instance of the Image java bean. |
private java.lang.Integer |
photoId
The photoId value that is used as the primary key
for each photo. |
private Image |
thumbnail
The thumbnail element value that is stored as an
instance of the Image java bean. |
private java.lang.String |
title
The title value that is used to identify a photo. |
| Constructor Summary | |
|---|---|
Photo(int photoId)
Creates a new instance of the bean using the specified value as the primary key value for this photo. |
|
Photo(java.lang.Integer photoId)
Creates a new instance of the bean using the specified value as the primary key value for this photo. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getDescription()
Returns description. |
Image |
getFullImage()
Returns fullImage. |
java.lang.Integer |
getPhotoId()
Returns photoId. |
Image |
getThumbnail()
Returns thumbnail. |
java.lang.String |
getTitle()
Returns title. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setDescription(java.lang.String description)
Set description. |
void |
setFullImage(Image fullImage)
Set fullImage. |
void |
setThumbnail(Image thumbnail)
Set thumbnail. |
void |
setTitle(java.lang.String title)
Set title. |
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 |
|---|
private java.lang.Integer photoId
photoId value that is used as the primary key
for each photo.
private java.lang.String title
title value that is used to identify a photo.
private Image fullImage
fullImage element value that is stored as an
instance of the Image java bean.
private Image thumbnail
thumbnail element value that is stored as an
instance of the Image java bean.
private java.lang.String description
description element value that is used to
describe the photo.
| Constructor Detail |
|---|
public Photo(int photoId)
photoId - - The unique identified used for each photo.public Photo(java.lang.Integer photoId)
photoId
instance variable is set to a new Integer object having the same
underlying int value as the object passed in.
photoId - - The unique identified used for each photo.| Method Detail |
|---|
public boolean equals(java.lang.Object object)
true if the specified object is an instance
of Photo, and the values of photoId
are the same.
equals in class java.lang.Objectobject - - The object that is to be compared with
this instance.public int hashCode()
photoId instance variable.
hashCode in class java.lang.Objectpublic java.lang.String toString()
title if it is not empty, else if returns the value
as returned by the method defined in the super class.
toString in class java.lang.Objectpublic final java.lang.Integer getPhotoId()
photoId.
public final java.lang.String getTitle()
title.
public final void setTitle(java.lang.String title)
title.
title - - The value to set.public final Image getFullImage()
fullImage.
public final void setFullImage(Image fullImage)
fullImage.
fullImage - - The value to set.public final Image getThumbnail()
thumbnail.
public final void setThumbnail(Image thumbnail)
thumbnail.
thumbnail - - The value to set.public final java.lang.String getDescription()
description.
public final void setDescription(java.lang.String description)
description.
description - - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||