|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.xml.album.Album
public class Album
A Java bean that represents one photo album entry in the photo albums XML file.
© Copyright 2003 Rakesh Vidyadharan
| Field Summary | |
|---|---|
private java.lang.String |
description
The description element for the album. |
private java.lang.String |
name
The name attribute for an album. |
(package private) java.util.Map |
photos
A Map of Photo java bean instances that
represent all the photo elements in the XML file. |
| Constructor Summary | |
|---|---|
private |
Album()
Default constructor. |
|
Album(java.lang.String name)
The only public constructor that is supported. |
| Method Summary | |
|---|---|
void |
addPhoto(Photo photo)
Add the specified Photo instance to the photos
map. |
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getDescription()
Returns description. |
java.lang.String |
getName()
Returns name. |
java.util.Map |
getPhotos()
Returns photos. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setDescription(java.lang.String description)
Set description. |
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.String name
name attribute for an album.
java.util.Map photos
Map of Photo java bean instances that
represent all the photo elements in the XML file.
private java.lang.String description
description element for the album.
| Constructor Detail |
|---|
private Album()
photos map.
This method cannot be directly involved. New instances of this
class should always be created with a proper name value.
public Album(java.lang.String name)
name to the specified value.
name - - The name value to use for this album.| Method Detail |
|---|
public void addPhoto(Photo photo)
Photo instance to the photos
map.
public boolean equals(java.lang.Object object)
true if the specified object is an instance
of Album, and the values of name are the
same.
equals in class java.lang.Objectobject - - The object that is to be compared with
this instance.public int hashCode()
name instance variable.
hashCode in class java.lang.Objectpublic java.lang.String toString()
name.
toString in class java.lang.Objectpublic final java.util.Map getPhotos()
photos.
public final java.lang.String getDescription()
description.
public final void setDescription(java.lang.String description)
description.
description - - The value to set.public final java.lang.String getName()
name.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||