|
|||||||||
| Home >> All >> com >> [ sonoma overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sonoma
Class SiteMenu

java.lang.Objectcom.sonoma.SiteMenu
- public class SiteMenu
- extends java.lang.Object
SiteMenu manages Chapters and Sections. Allowing users to add/edit/move/ and remove sections or chapters
- Version:
| Field Summary | |
private org.w3c.dom.Node |
xmlCurrentNode
|
| Constructor Summary | |
SiteMenu()
Creates new dbContent |
|
| Method Summary | |
void |
addChapter(org.w3c.dom.Document doc,
java.lang.String CurrentChapterID,
java.lang.String Title,
java.lang.String NewID)
Creates a new Chapter in the DocBook |
org.w3c.dom.Node |
addSect1(org.w3c.dom.Document doc,
java.lang.String Label,
java.lang.String NewID,
java.lang.String SectionID,
java.lang.String ChapterID)
adds a new section to a selected chapter before the chapter with the selectedID value |
org.w3c.dom.Node |
addSect1(org.w3c.dom.Node ndChapter,
java.lang.String Label,
java.lang.String NewID,
XMLUtility myXML)
adds a new section to the end of a chapter node |
java.lang.String |
createMenuXPath(java.lang.String ChapterID)
Creates a valid XPath with a ChapterID |
java.lang.String |
createMenuXPath(java.lang.String ChapterID,
java.lang.String SectionID)
Creates a valid XPath with a Chapter and SectionID |
private java.lang.String |
createXPath(java.lang.String ChapterID,
java.lang.String SectionID)
|
org.w3c.dom.Node |
moveChapter(org.w3c.dom.Document doc,
java.lang.String OldID,
java.lang.String NewID)
Removes a chapter and adds it back in a new location (before the new location) |
org.w3c.dom.Node |
moveSect1(org.w3c.dom.Document doc,
java.lang.String CurrentSectionID,
java.lang.String CurrentChapterID,
java.lang.String NewSectionID,
java.lang.String NewChapterID)
Moves a section from one place to another within the DocBook file |
org.w3c.dom.Node |
removeChapter(org.w3c.dom.Document doc,
java.lang.String OldID)
Removes a chapter |
org.w3c.dom.Node |
removeSect1(org.w3c.dom.Document doc,
java.lang.String SectionID,
java.lang.String ChapterID)
Removes a section from a chapter in the DocBook file |
void |
updateChapter(org.w3c.dom.Document doc,
java.lang.String OldID,
java.lang.String NewID,
java.lang.String NewTitle)
Updates a new Chapter in the DocBook |
void |
updateSect1(org.w3c.dom.Document doc,
java.lang.String Label,
java.lang.String NewID,
java.lang.String SectionID,
java.lang.String ChapterID)
Updates a Section |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
xmlCurrentNode
private org.w3c.dom.Node xmlCurrentNode
| Constructor Detail |
SiteMenu
public SiteMenu()
- Creates new dbContent
| Method Detail |
createMenuXPath
public java.lang.String createMenuXPath(java.lang.String ChapterID, java.lang.String SectionID)
- Creates a valid XPath with a Chapter and SectionID
createMenuXPath
public java.lang.String createMenuXPath(java.lang.String ChapterID)
- Creates a valid XPath with a ChapterID
createXPath
private java.lang.String createXPath(java.lang.String ChapterID, java.lang.String SectionID)
addChapter
public final void addChapter(org.w3c.dom.Document doc, java.lang.String CurrentChapterID, java.lang.String Title, java.lang.String NewID)
- Creates a new Chapter in the DocBook
updateChapter
public void updateChapter(org.w3c.dom.Document doc, java.lang.String OldID, java.lang.String NewID, java.lang.String NewTitle)
- Updates a new Chapter in the DocBook
moveChapter
public org.w3c.dom.Node moveChapter(org.w3c.dom.Document doc, java.lang.String OldID, java.lang.String NewID)
- Removes a chapter and adds it back in a new location (before the new location)
removeChapter
public org.w3c.dom.Node removeChapter(org.w3c.dom.Document doc, java.lang.String OldID)
- Removes a chapter
addSect1
public org.w3c.dom.Node addSect1(org.w3c.dom.Node ndChapter, java.lang.String Label, java.lang.String NewID, XMLUtility myXML)
- adds a new section to the end of a chapter node
addSect1
public org.w3c.dom.Node addSect1(org.w3c.dom.Document doc, java.lang.String Label, java.lang.String NewID, java.lang.String SectionID, java.lang.String ChapterID)
- adds a new section to a selected chapter before the chapter with the selectedID value
updateSect1
public void updateSect1(org.w3c.dom.Document doc, java.lang.String Label, java.lang.String NewID, java.lang.String SectionID, java.lang.String ChapterID)
- Updates a Section
moveSect1
public org.w3c.dom.Node moveSect1(org.w3c.dom.Document doc, java.lang.String CurrentSectionID, java.lang.String CurrentChapterID, java.lang.String NewSectionID, java.lang.String NewChapterID)
- Moves a section from one place to another within the DocBook file
removeSect1
public org.w3c.dom.Node removeSect1(org.w3c.dom.Document doc, java.lang.String SectionID, java.lang.String ChapterID)
- Removes a section from a chapter in the DocBook file
|
|||||||||
| Home >> All >> com >> [ sonoma overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.sonoma.SiteMenu