public class ChildInfo
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
ChildInfo()
Constructs a new ChildInfo object with default values
{
id : "-1",
title : " - ",
album : " - ",
albumId : "-1",
artist : " - ",
artistId : "-1",
parent : "-1",
coverArt : "-1",
isDir : false,
isVideo : false,
track : 0,
size : 0,
duration : 0,
bitRate : 0,
path : "",
created : "",
year : 0,
genre : "",
contentType : "",
type : "",
sufix : "",
averageRating : 0,
userRating : 0
}
|
Modifier and Type | Method and Description |
---|---|
ChildInfo |
clone() |
java.lang.String |
getAlbum()
Returns this child album name
|
java.lang.String |
getAlbumId()
Returns this child album ID
|
java.lang.String |
getArtist()
Returns this child artist name
|
java.lang.String |
getArtistId()
Returns this child artist ID
|
float |
getAverageRating()
Returns this child average rating
|
int |
getBitRate()
Returns this child bitrate in Kbs
|
java.lang.String |
getContentType()
Returns this child content-type
|
java.lang.String |
getCoverArt()
Returns this child cover art id
|
java.lang.String |
getCreationDate()
Returns this child creation date
|
int |
getDuration()
Returns this child duration in seconds
|
java.lang.String |
getGenre()
Returns this child genre
|
java.lang.String |
getId()
Returns this child ID
|
java.lang.String |
getParent()
Returns this child parent ID
|
java.lang.String |
getPath()
Returns this child path
|
long |
getSize()
Returns this child size in bytes
|
java.lang.String |
getSuffix()
Returns this child suffix
|
java.lang.String |
getTitle()
Returns this child title
|
int |
getTrack()
Returns this child track number
|
java.lang.String |
getType()
Returns this child type
|
int |
getUserRating()
Returns this child current user rating
|
int |
getYear()
Returns this child year
|
boolean |
isDir()
Defines if this child is a directory
|
boolean |
isVideo()
Defines if this child is a video
|
ChildInfo |
setAlbum(java.lang.String album)
Sets this child album name
|
ChildInfo |
setAlbumId(java.lang.String albumId)
Sets this child album ID
|
ChildInfo |
setArtist(java.lang.String artist)
Sets this child artist name
|
ChildInfo |
setArtistId(java.lang.String artistId)
Sets this child artist ID
|
ChildInfo |
setAverageRating(float averageRating)
Sets this child average rating
|
ChildInfo |
setBitRate(int bitRate)
Sets this child bitrate in Kbs
|
ChildInfo |
setContentType(java.lang.String contentType)
Sets this child content-type
|
ChildInfo |
setCoverArt(java.lang.String coverArt)
Sets this child cover art ID
|
ChildInfo |
setCreationDate(java.lang.String created)
Sets this child creation date
|
ChildInfo |
setDuration(int duration)
Sets this child duration in seconds
|
ChildInfo |
setGenre(java.lang.String genre)
Sets this child genre
|
ChildInfo |
setId(java.lang.String id)
Sets this child ID
|
ChildInfo |
setIsDir(boolean isDir)
Sets if this child is a directory
|
ChildInfo |
setIsVideo(boolean isVideo)
Sets if this child is a video
|
ChildInfo |
setParent(java.lang.String parent)
Sets this child parent ID
|
ChildInfo |
setPath(java.lang.String path)
Sets this child path
|
ChildInfo |
setSize(long size)
Sets this child size in bytes
|
ChildInfo |
setSuffix(java.lang.String suffix)
Sets this child cuffix
|
ChildInfo |
setTitle(java.lang.String title)
Sets this child title
|
ChildInfo |
setTrack(int track)
Sets this child track number
|
ChildInfo |
setType(java.lang.String type)
Sets this child type
|
ChildInfo |
setUserRating(int userRating)
Sets this child current user rating
|
ChildInfo |
setYear(int year)
Sets this child year
|
java.lang.String |
toString()
The string representation of this child is its title
|
public ChildInfo()
{ id : "-1", title : " - ", album : " - ", albumId : "-1", artist : " - ", artistId : "-1", parent : "-1", coverArt : "-1", isDir : false, isVideo : false, track : 0, size : 0, duration : 0, bitRate : 0, path : "", created : "", year : 0, genre : "", contentType : "", type : "", sufix : "", averageRating : 0, userRating : 0 }
public java.lang.String getId()
public java.lang.String getTitle()
public java.lang.String getAlbum()
public java.lang.String getAlbumId()
public java.lang.String getArtist()
public java.lang.String getArtistId()
public java.lang.String getParent()
public java.lang.String getCoverArt()
public boolean isDir()
public boolean isVideo()
public int getTrack()
public long getSize()
public int getDuration()
public int getBitRate()
public java.lang.String getPath()
public java.lang.String getCreationDate()
public int getYear()
public java.lang.String getGenre()
public java.lang.String getContentType()
public java.lang.String getType()
public java.lang.String getSuffix()
public float getAverageRating()
public int getUserRating()
public ChildInfo setId(java.lang.String id)
id
- New IDpublic ChildInfo setTitle(java.lang.String title)
title
- New titlepublic ChildInfo setAlbum(java.lang.String album)
album
- New album namepublic ChildInfo setAlbumId(java.lang.String albumId)
albumId
- New album IDpublic ChildInfo setArtist(java.lang.String artist)
artist
- New artist namepublic ChildInfo setArtistId(java.lang.String artistId)
artistId
- New artist IDpublic ChildInfo setParent(java.lang.String parent)
parent
- New parent idpublic ChildInfo setCoverArt(java.lang.String coverArt)
coverArt
- New cover art IDpublic ChildInfo setIsDir(boolean isDir)
isDir
- True to make this child a directory. False otherwisepublic ChildInfo setIsVideo(boolean isVideo)
isVideo
- True to make this child a video. False otherwisepublic ChildInfo setTrack(int track)
track
- New track numberpublic ChildInfo setSize(long size)
size
- New size in bytespublic ChildInfo setDuration(int duration)
duration
- New duration in secondspublic ChildInfo setBitRate(int bitRate)
bitRate
- New bitrate in Kbspublic ChildInfo setPath(java.lang.String path)
path
- New pathpublic ChildInfo setCreationDate(java.lang.String created)
created
- New creation datepublic ChildInfo setYear(int year)
year
- New yearpublic ChildInfo setGenre(java.lang.String genre)
genre
- New genrepublic ChildInfo setContentType(java.lang.String contentType)
contentType
- New content-typepublic ChildInfo setType(java.lang.String type)
type
- New typepublic ChildInfo setSuffix(java.lang.String suffix)
suffix
- New suffixpublic ChildInfo setAverageRating(float averageRating)
averageRating
- New average ratingpublic ChildInfo setUserRating(int userRating)
userRating
- New user ratingpublic java.lang.String toString()
toString
in class java.lang.Object
public ChildInfo clone()
clone
in class java.lang.Object