com.xenonsoft.bridgetown.examples.dvdrental
Class XMLMovieDatabase

java.lang.Object
  extended bycom.xenonsoft.bridgetown.examples.dvdrental.XMLMovieDatabase

public class XMLMovieDatabase
extends java.lang.Object

Reads Movie database from an XML configuration file

Version:
$Id: XMLMovieDatabase.java,v 1.4 2005/02/23 01:29:20 peter_pilgrim Exp $
Author:
Peter Pilgrim, Aug 13, 2004 11:45:08 AM

Constructor Summary
XMLMovieDatabase()
          Default constructor
 
Method Summary
protected  org.apache.commons.digester.Digester createDigester()
          Creates the digester parse with the rules all set up.
 java.util.List getList()
          Gets the list collection of DVD Movies
 void load(java.io.File file)
           
 void load(java.io.InputStream is)
           
 void setList(java.util.List list)
          Sets the list collection of DVD Movies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMovieDatabase

public XMLMovieDatabase()
Default constructor

Method Detail

load

public void load(java.io.File file)

load

public void load(java.io.InputStream is)

createDigester

protected org.apache.commons.digester.Digester createDigester()
Creates the digester parse with the rules all set up.

Returns:
the Common Digester parser ready to parse and load a configuration

getList

public java.util.List getList()
Gets the list collection of DVD Movies

Returns:
Returns the list.

setList

public void setList(java.util.List list)
Sets the list collection of DVD Movies

Parameters:
list - the new value for list


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.