org.stanwood.media.search
Class SearchDetails

java.lang.Object
  extended by org.stanwood.media.search.SearchDetails

public class SearchDetails
extends java.lang.Object

The search details returned by the different ISearchStrategy classes.


Constructor Summary
SearchDetails(java.lang.String term, java.lang.String year, java.lang.Integer part)
          The constructor
 
Method Summary
 java.lang.Integer getEpisode()
          Used to get the episode number
 java.lang.Integer getPart()
          Used to get the part number
 java.lang.Integer getSeason()
          Used to get the season number
 java.lang.String getTerm()
          Used to get the search term
 java.lang.String getYear()
          Used to get the year
 void setEpisode(java.lang.Integer episode)
          Used to set the episode number
 void setSeason(java.lang.Integer season)
          Used to set the season number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchDetails

public SearchDetails(java.lang.String term,
                     java.lang.String year,
                     java.lang.Integer part)
The constructor

Parameters:
term - The search term
year - The year, or null if not found
part - The media part number, or null if not found
Method Detail

getTerm

public java.lang.String getTerm()
Used to get the search term

Returns:
The search term

getYear

public java.lang.String getYear()
Used to get the year

Returns:
The year, or null if not found

getPart

public java.lang.Integer getPart()
Used to get the part number

Returns:
The media part number, or null if not found

getSeason

public java.lang.Integer getSeason()
Used to get the season number

Returns:
the season number, or null if not found

setSeason

public void setSeason(java.lang.Integer season)
Used to set the season number

Parameters:
season - The season number

getEpisode

public java.lang.Integer getEpisode()
Used to get the episode number

Returns:
the episode number, or null if not found

setEpisode

public void setEpisode(java.lang.Integer episode)
Used to set the episode number

Parameters:
episode - The episode number