maiolum.xml
Class XMLBibleModule

java.lang.Object
  extended bymaiolum.BibleModule
      extended bymaiolum.xml.XMLBibleModule

public class XMLBibleModule
extends BibleModule

Represents concept of one or many BibleFragments contained in one XML file. One physical XML file containing BibleFragments data is mapped to one XMLBibleModule object. However, actual DOM representation of the data contained in the XML file are maintained by XMLBibleFragmentFactory associated with this module.


Field Summary
protected  Edition edition
          Contains metadata about this module.
protected  XMLBibleFragmentFactory factory
          XMLBibleFragment factory associated with this module.
private static org.apache.log4j.Logger logger
          Provides logging facility for this class;
protected  java.lang.String URI
          Contains URI - actually location of the XML file represented by this module in the filesystem.
 
Constructor Summary
XMLBibleModule(java.lang.String URI, Edition edition)
          Creates new XMLBibleModule from the XML file specified by URI and associates given Edition with this module.
 
Method Summary
protected  void finalize()
           
 Edition getEdition()
          Returns Edition associated with this module.
 BibleFragmentFactory getFactory()
          Retrieves BibleFragmentFactory associated with this object.
 java.lang.String getURI()
          Retrieves URI of the file, from which were the data loaded.
 void setEdition(Edition edition)
          Associates given Edition with this module.
 void setFactory(XMLBibleFragmentFactory value)
           
 void setURI(java.lang.String value)
          Associates given URI with the XML file containing data with this module.
 
Methods inherited from class maiolum.BibleModule
setFactory
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger
Provides logging facility for this class;


edition

protected Edition edition
Contains metadata about this module.


URI

protected java.lang.String URI
Contains URI - actually location of the XML file represented by this module in the filesystem.


factory

protected XMLBibleFragmentFactory factory
XMLBibleFragment factory associated with this module.

See Also:
maiolum.xml.BibleFragmentFactory.
Constructor Detail

XMLBibleModule

public XMLBibleModule(java.lang.String URI,
                      Edition edition)
               throws java.lang.Exception
Creates new XMLBibleModule from the XML file specified by URI and associates given Edition with this module. In the process of construction is created new XMLBibleFragmentFactory, which will contain the XML representation and the actual data.

Method Detail

getEdition

public Edition getEdition()
Returns Edition associated with this module.

Overrides:
getEdition in class BibleModule

setEdition

public void setEdition(Edition edition)
Associates given Edition with this module.

Overrides:
setEdition in class BibleModule

getURI

public java.lang.String getURI()
Retrieves URI of the file, from which were the data loaded.


setURI

public void setURI(java.lang.String value)
Associates given URI with the XML file containing data with this module. However, the data in the underlying XMLBibleFragmentFactory are not reloaded.


getFactory

public BibleFragmentFactory getFactory()
Retrieves BibleFragmentFactory associated with this object.

Overrides:
getFactory in class BibleModule

setFactory

public void setFactory(XMLBibleFragmentFactory value)

finalize

protected void finalize()