maiolum
Class BibleFragmentFactory

java.lang.Object
  extended bymaiolum.BibleFragmentFactory
Direct Known Subclasses:
XMLBibleFragmentFactory, XMLModuleManager.XMLModuleBibleFragmentFactory

public abstract class BibleFragmentFactory
extends java.lang.Object

BibleFragmentFactory has the information about nearest siblings (in the document order) of given BibleFragments


Constructor Summary
BibleFragmentFactory()
           
 
Method Summary
abstract  BibleFragment getNextSibling(BibleFragment fragment)
          Returns next BibleFragment to the given fragment in the text-order.
abstract  BibleFragment getPreviousSibling(BibleFragment fragment)
          Returns BibleFragment, which is next to fragment relative to the fragment having specified ID, in text-order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BibleFragmentFactory

public BibleFragmentFactory()
Method Detail

getNextSibling

public abstract BibleFragment getNextSibling(BibleFragment fragment)
                                      throws java.lang.Exception
Returns next BibleFragment to the given fragment in the text-order.

Throws:
java.lang.Exception

getPreviousSibling

public abstract BibleFragment getPreviousSibling(BibleFragment fragment)
                                          throws java.lang.Exception
Returns BibleFragment, which is next to fragment relative to the fragment having specified ID, in text-order.

Throws:
java.lang.Exception