|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sonoma.SiteMenu
SiteMenu manages Chapters and Sections. Allowing users to add/edit/move/ and remove sections or chapters
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 |
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 |
Constructor Detail |
public SiteMenu()
Method Detail |
public java.lang.String createMenuXPath(java.lang.String ChapterID, java.lang.String SectionID)
doc
- is the current DocBookChapterID
- is the Chapter's @id attribute valueSectionID
- is the sections @id attribute Valuepublic java.lang.String createMenuXPath(java.lang.String ChapterID)
doc
- is the current DocBookChapterID
- is the Chapter's @id attribute valuepublic final void addChapter(org.w3c.dom.Document doc, java.lang.String CurrentChapterID, java.lang.String Title, java.lang.String NewID)
doc
- is the current DocBookCurrentChapterID
- is where the new chapter will be inserted (before the current)Title
- a text title for the chapterNewID
- is the @id attribute for the new chapter.public void updateChapter(org.w3c.dom.Document doc, java.lang.String OldID, java.lang.String NewID, java.lang.String NewTitle)
doc
- is the current DocBookOldID
- the current DocBook chapter @id attribute valueNewTitle
- is the new text title for the chapterNewID
- is the new @id attribute for the chapter.public org.w3c.dom.Node moveChapter(org.w3c.dom.Document doc, java.lang.String OldID, java.lang.String NewID)
doc
- is the current DocBookOldID
- the current DocBook chapter @id attribute valueNewID
- the current chapter will be pasted before the chapter with this @id attribute.public org.w3c.dom.Node removeChapter(org.w3c.dom.Document doc, java.lang.String OldID)
doc
- is the current DocBookOldID
- the current DocBook chapter @id attribute valuepublic org.w3c.dom.Node addSect1(org.w3c.dom.Node ndChapter, java.lang.String Label, java.lang.String NewID, XMLUtility myXML)
ndChapter
- the current chapterLabel
- is the value for the chapter's @label attributeNewID
- is the value for the chapter's @id attributepublic 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)
doc
- the current DocBook XML fileLabel
- the label attribute for the new sectionNewID
- the id of the new sectionSectionID
- the new section will be inserted before this sectionChapterID
- used to select the correct section in the correct Chapterpublic void updateSect1(org.w3c.dom.Document doc, java.lang.String Label, java.lang.String NewID, java.lang.String SectionID, java.lang.String ChapterID)
doc
- the current DocBook XML fileLabel
- the label attribute for the new sectionNewID
- the new id of the sectionSectionID
- the current id of the sectionChapterID
- used to select the correct section in the correct Chapterpublic 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)
doc
- the current DocBook XML fileCurrentSectionID
- is the @id value of the section to be movedCurrentChapterID
- the @id value of the chapter of the current section to be movedNewSectionID
- is the section will be pasted before the section with this @id value and the @id value of the chapter.NewChapterID
- see abovepublic org.w3c.dom.Node removeSect1(org.w3c.dom.Document doc, java.lang.String SectionID, java.lang.String ChapterID)
SectionID
- the current id of the sectionChapterID
- used to select the correct section in the correct Chapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |