|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmaiolum.xml.XMLBibleFragment
This class is an XML implementation of BibleFragment.
It internally holds textual data in XML format - using
org.w3c.dom.Element class. Furthermore,
it allows to load XML data from File
or from file defined by String pathname.
| Field Summary | |
private Edition |
edition
|
private java.lang.String |
id
|
private BibleFragment |
parent
|
private java.lang.String |
title
|
private FragmentType |
type
|
private org.w3c.dom.Node |
xmlData
|
| Constructor Summary | |
XMLBibleFragment()
|
|
XMLBibleFragment(java.io.File f)
|
|
XMLBibleFragment(java.lang.String filename)
|
|
| Method Summary | |
FragmentData |
getData()
Returns actual fragment contents, be it normal String, XML Node or other user specified type. |
Edition |
getEdition()
Returns the unit descriptive meta-information (e.g. language, year of issue etc) of this fragment. |
BibleFragment |
getChildByID(java.lang.String id)
Returns child BibleFragment that has given ID. |
java.lang.String |
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. |
java.lang.String |
getTitle()
|
FragmentType |
getType()
Returns this fragment“s type - whether it is chapter, book or other user-defined textual unit. |
org.w3c.dom.Node |
getXMLData()
|
void |
setEdition(Edition edition)
Allows to set the appropriate Edition for this fragment. |
void |
setID(java.lang.String id)
Sets this fragment's ID to id. |
void |
setParent(BibleFragment parent)
Sets the parent text fragment to parent. |
void |
setTitle(java.lang.String title)
|
void |
setType(FragmentType type)
Sets this fragment's type. |
void |
setXMLData(java.io.File f)
|
void |
setXMLData(org.w3c.dom.Node xmlData)
|
void |
setXMLData(java.lang.String filename)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private BibleFragment parent
private FragmentType type
private java.lang.String id
private java.lang.String title
private Edition edition
private org.w3c.dom.Node xmlData
| Constructor Detail |
public XMLBibleFragment()
public XMLBibleFragment(java.io.File f)
throws ParseException
public XMLBibleFragment(java.lang.String filename)
throws ParseException
| Method Detail |
public BibleFragment getParent()
BibleFragmentnull
getParent in interface BibleFragmentpublic void setParent(BibleFragment parent)
BibleFragmentparent.
setParent in interface BibleFragmentpublic FragmentType getType()
BibleFragment
getType in interface BibleFragmentpublic void setType(FragmentType type)
BibleFragment
setType in interface BibleFragmentpublic java.lang.String getID()
BibleFragment
getID in interface BibleFragmentpublic void setID(java.lang.String id)
BibleFragmentid. The ID should not
be null.
setID in interface BibleFragmentpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setEdition(Edition edition)
BibleFragment
setEdition in interface BibleFragmentpublic Edition getEdition()
BibleFragment
getEdition in interface BibleFragmentpublic org.w3c.dom.Node getXMLData()
public void setXMLData(org.w3c.dom.Node xmlData)
public void setXMLData(java.lang.String filename)
throws ParseException
ParseException
public void setXMLData(java.io.File f)
throws ParseException
ParseExceptionpublic BibleFragment getChildByID(java.lang.String id)
getChildByID in interface ChildrenAwarepublic FragmentData getData()
BibleFragment
getData in interface BibleFragment
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||