Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.book
Class BibleEle  view BibleEle download BibleEle.java

java.lang.Object
  extended bycom.eireneh.bible.book.BibleEle
All Implemented Interfaces:
BookEle

public class BibleEle
extends java.lang.Object
implements BookEle

Some helper classes to aid Document creation, and to hide all the DOM/ProjectX/XML4J specific bits.

The requirements for Document handling are these:

   - Do not force users of this or other packages to use org.w3c.dom
   - Model the current DTD.
 

This is the root of a set of Element type objects to help creating a DOM according to our DTD. In general it is the job of each Parent to add child Elements to itself. In general you should use the parent to create a child because it is easier.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.

Version:
D5.I2.T2

Field Summary
private  org.w3c.dom.Element bible
          The root of the DOM tree
private  org.w3c.dom.Document doc
          The actual data store
private  java.util.Vector sections
          The list of Sections
 
Constructor Summary
BibleEle()
          Create a default BibleEleument.
BibleEle(org.w3c.dom.Node node)
          Create a default BibleEleument.
 
Method Summary
 void addSectionEle(SectionEle section)
          Start a new section
 SectionEle createSectionEle(java.lang.String title)
          Start a new section
 SectionEle createSectionEle(java.lang.String title, java.lang.String version)
          Start a new section
 org.w3c.dom.Document getDocument()
          Get a reference to the real W3C Document.
 org.w3c.dom.Element getElement()
          This is an accessor for the root <bible> Element
 java.util.Enumeration getSectionEles()
          This is an enumeration through all the sections in this Document.
 java.lang.String getText()
          A simplified plain text version of the data in this verse with all the markup stripped out.
 void getText(java.lang.StringBuffer buffer)
          A simplified plain text version of the data in this verse with all the markup stripped out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sections

private java.util.Vector sections
The list of Sections


doc

private org.w3c.dom.Document doc
The actual data store


bible

private org.w3c.dom.Element bible
The root of the DOM tree

Constructor Detail

BibleEle

public BibleEle()
Create a default BibleEleument.


BibleEle

public BibleEle(org.w3c.dom.Node node)
Create a default BibleEleument.

Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Get a reference to the real W3C Document.

Specified by:
getDocument in interface BookEle

getElement

public org.w3c.dom.Element getElement()
This is an accessor for the root <bible> Element


getSectionEles

public java.util.Enumeration getSectionEles()
This is an enumeration through all the sections in this Document. Each of the sections will be able to give a list of the Verses that it contains.


addSectionEle

public void addSectionEle(SectionEle section)
Start a new section


createSectionEle

public SectionEle createSectionEle(java.lang.String title)
Start a new section


createSectionEle

public SectionEle createSectionEle(java.lang.String title,
                                   java.lang.String version)
Start a new section


getText

public java.lang.String getText()
A simplified plain text version of the data in this verse with all the markup stripped out.

Specified by:
getText in interface BookEle

getText

public void getText(java.lang.StringBuffer buffer)
A simplified plain text version of the data in this verse with all the markup stripped out.