maiolum.plainxml
Class PXBibleFragment

java.lang.Object
  extended bymaiolum.plainxml.PXBibleFragment
All Implemented Interfaces:
BibleFragment
Direct Known Subclasses:
PXBibleModule

public class PXBibleFragment
extends java.lang.Object
implements BibleFragment

Author:
Robert Novotny

Constructor Summary
PXBibleFragment()
           
 
Method Summary
 FragmentData getData()
          Returns actual fragment contents, be it normal String, XML Node or other user specified type.
 DataSource getDataSource()
           
 Edition getEdition()
          Returns the unit descriptive meta-information (e.g. language, year of issue etc) of this fragment.
 FID getID()
          Returns a String representing this fragment's identifier.
 BibleFragment getParent()
          Returns the parent text fragment - typically parent to verse is chapter, parent to chapter is book, which are actually BibleFragments, too.
 FragmentType getType()
          Returns this fragment“s type - whether it is chapter, book or other user-defined textual unit.
 void setData(FragmentData data)
           
 void setDataSource(DataSource dataSource)
           
 void setEdition(Edition edition)
          Allows to set the appropriate Edition for this fragment.
 void setID(FID id)
          Sets this fragment's ID to id.
 void setParent(BibleFragment parent)
          Sets the parent text fragment to parent.
 void setType(FragmentType type)
          Sets this fragment's type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PXBibleFragment

public PXBibleFragment()
Method Detail

getEdition

public Edition getEdition()
Description copied from interface: BibleFragment
Returns the unit descriptive meta-information (e.g. language, year of issue etc) of this fragment.

Specified by:
getEdition in interface BibleFragment

setEdition

public void setEdition(Edition edition)
Description copied from interface: BibleFragment
Allows to set the appropriate Edition for this fragment.

Specified by:
setEdition in interface BibleFragment

getID

public FID getID()
Description copied from interface: BibleFragment
Returns a String representing this fragment's identifier. This can be used e. g. as ID attribute in XML.

Specified by:
getID in interface BibleFragment

setID

public void setID(FID id)
Description copied from interface: BibleFragment
Sets this fragment's ID to id. The ID should not be null.

Specified by:
setID in interface BibleFragment

getParent

public BibleFragment getParent()
Description copied from interface: BibleFragment
Returns the parent text fragment - typically parent to verse is chapter, parent to chapter is book, which are actually BibleFragments, too. Parent text fragment can be null

Specified by:
getParent in interface BibleFragment

setParent

public void setParent(BibleFragment parent)
Description copied from interface: BibleFragment
Sets the parent text fragment to parent.

Specified by:
setParent in interface BibleFragment

getType

public FragmentType getType()
Description copied from interface: BibleFragment
Returns this fragment“s type - whether it is chapter, book or other user-defined textual unit.

Specified by:
getType in interface BibleFragment

setType

public void setType(FragmentType type)
Description copied from interface: BibleFragment
Sets this fragment's type.

Specified by:
setType in interface BibleFragment

getDataSource

public DataSource getDataSource()
Specified by:
getDataSource in interface BibleFragment

setDataSource

public void setDataSource(DataSource dataSource)
Specified by:
setDataSource in interface BibleFragment

getData

public FragmentData getData()
Description copied from interface: BibleFragment
Returns actual fragment contents, be it normal String, XML Node or other user specified type.

Specified by:
getData in interface BibleFragment

setData

public void setData(FragmentData data)
Specified by:
setData in interface BibleFragment

toString

public java.lang.String toString()