|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sonoma.SiteContent
Creates DocBook Paragraph of nodes (item nodes) and attributes. Also used to create new postings (DocBook Articles) Other classes and JSP pages use this object instead of Xerces or XML. SiteContent.java
Constructor Summary | |
SiteContent()
|
Method Summary | |
boolean |
addAuthorInfo()
Not yet implemented or used |
boolean |
addLongArticle(org.w3c.dom.Document doc,
dbNewArticle art)
Creates a new article (posting) xml file. |
org.w3c.dom.Node |
addParagraph(org.w3c.dom.Document doc,
java.lang.String sSection,
int iPara,
spParagraph para)
Adds a new paragraph Before the specified paragraph number |
org.w3c.dom.Node |
addTitle(org.w3c.dom.Document doc,
java.lang.String sSection,
int iPara,
java.lang.String title)
Adds a Title element to the chapter or article. |
java.lang.String |
createXPath(int iPara,
java.lang.String sSection,
boolean isText)
Creates XPath Query based on request parameters, usually from JSP pages. |
boolean |
deleteParagraph(org.w3c.dom.Document doc,
int iPara,
java.lang.String section)
Deprecated. |
boolean |
deleteParagraph(org.w3c.dom.Document doc,
java.lang.String sSection,
int iPara)
Deletes paragraphs title, anything at the section level |
boolean |
moveParagraph(org.w3c.dom.Document doc,
java.lang.String sSection,
int iPara,
int iNewPosition)
Copies a paragraph node to a new position then deletes it |
org.w3c.dom.Node |
updateParagraph(org.w3c.dom.Document doc,
java.lang.String sSection,
int iPara,
spParagraph para)
Updates the Node of a paragraph for DocBooks and DocBook Articles. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SiteContent()
Method Detail |
public java.lang.String createXPath(int iPara, java.lang.String sSection, boolean isText)
iPath
- is the current DocBook or DocBook Article paragraph nodesSection
- the label of the section of the current paragraph. If null or empty string an Article document is used (/article)isText
- if true, the /text() element is added to the end of the XPath, otherwise, the paragraph is the final nodepublic final org.w3c.dom.Node addTitle(org.w3c.dom.Document doc, java.lang.String sSection, int iPara, java.lang.String title)
doc
- is the current DocBook or DocBook ArticlesSection
- the label of the section to be added tond
- iPara the paragraph before which the new one will be addedtitle
- The string value of the title to addpublic final boolean deleteParagraph(org.w3c.dom.Document doc, java.lang.String sSection, int iPara)
iPath
- is the current DocBook or DocBook Article paragraph nodesSection
- the label of the section of the current paragraph. If null or empty string an Article document is used (/article)iPara
- the paragraph to be deletedpublic final boolean moveParagraph(org.w3c.dom.Document doc, java.lang.String sSection, int iPara, int iNewPosition)
iPath
- is the current DocBook or DocBook Article paragraph nodesSection
- the label of the section of the current paragraph. If null or empty string an Article document is used (/article)iPara
- the paragraph to be movediNewPosition
- the position in the current document (before the paragraph is deleted) where the paragraph should be movedpublic org.w3c.dom.Node updateParagraph(org.w3c.dom.Document doc, java.lang.String sSection, int iPara, spParagraph para)
doc
- is the current DocBook or DocBook ArticlesSection
- the label of the section to be added tond
- iPara the paragraph before which the new one will be addedoPara
- is a paragraph object representing a DocBook Paragraphpublic org.w3c.dom.Node addParagraph(org.w3c.dom.Document doc, java.lang.String sSection, int iPara, spParagraph para)
doc
- is the current DocBook or DocBook ArticlesSection
- the label of the section to be added tond
- iPara the paragraph before which the new one will be addedoPara
- is a paragraph object representing a DocBook Paragraphpublic boolean addAuthorInfo()
public boolean addLongArticle(org.w3c.dom.Document doc, dbNewArticle art)
doc
- is the current DocBook or DocBook Articleart
- is the Sonoma object representing a collection of paragraphs used to create the new articlepublic boolean deleteParagraph(org.w3c.dom.Document doc, int iPara, java.lang.String section)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |