Package edu.kirkwood.dao.impl
Class XmlMovieDAO
java.lang.Object
edu.kirkwood.dao.impl.XmlMovieDAO
- All Implemented Interfaces:
MovieDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTo parse an XML file converting it into a list of Movie objectsRetrieves all movies that match a given title
-
Constructor Details
-
XmlMovieDAO
-
-
Method Details
-
search
Retrieves all movies that match a given title -
parseXml
To parse an XML file converting it into a list of Movie objects- Parameters:
xml- The raw XML data- Returns:
- the OmdbMovieResponse object (contains list of movies, total number of movies, and a response string (True or False))
- Throws:
jakarta.xml.bind.JAXBException
-