sfi.director.application.autodoc.DocChapter Class Reference

List of all members.

Detailed Description

Represents one chapter in the documentation.


Public Member Functions

 DocChapter ()
 DocChapter (String title[])
 DocChapter (DocChapter parent, String title)
 Create a new sub chapter within the given parent chapter.
String[] childTitle (String title)
StringBuffer text ()
 Accessor for attribute text.
StringBuffer text (StringBuffer text)
 Mutator for attribute text.
void addText (String text)
 Add a piece of text to the chapter contents.
void addTag (String tag, String attributes, String text)
void addBlock (String text)
 Add a text block (a div, actually).
void addParagraph (String text)
 Add a paragraph.
void addCode (String text)
 Add verbatim text that is supposed to be formatted as a code example.
void addChapterRef (Vector refs, boolean withSubheading, Vector texts)
 Add a list of references to chapters.
void addChapterRef (Vector refs, boolean withSubheading)
void addChapterRef (DocChapter ref, boolean withSubheading)
 Add one reference to a chapter (like addChapterRef(Vector, boolean)).
void addChapterRef (DocChapter ref, boolean withSubheading, String additionalText)
 Add one reference to a chapter (like addChapterRef(Vector, boolean)).
void addChapterRefWithTemplate (DocChapter ref, DocInfo info)
 Add one reference to a chapter as specified in the DocInfo record.
void addToRefChapter (DocBuilder builder, DocChapter targetChapter, String subChapterTitle, String additionalText)
 Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle.
void addToRefChapter (DocBuilder builder, DocChapter targetChapter, String subChapterTitle)
 Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle.
void addFile (File file) throws DirectorException
 Add contents read from a (optionally xhtml formatted) text file.
void addFile (String text) throws DirectorException
 Add content from a PHTML String.
File addImage (DocBuilder builder, File imagefile, int maxwidth, int maxheight, String caption)
 Add an image, optionally with caption.
File addImage (DocBuilder builder, File imagefile, String caption)
 Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument.
File addImage (DocBuilder builder, File imagefile)
 Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument.
String[] title ()
 Accessor for attribute title.
String heading ()
 Return the actual title text with hierarchy stripped off.
String[] title (String title[])
 Mutator for attribute title.
void resetText ()
String label ()
 Accessor for attribute label.
String label (String label)
 Mutator for attribute label.
Vector aliasLabels ()
 Accessor for attribute aliasLabels.
Vector aliasLabels (Vector aliasLabels)
 Mutator for attribute aliasLabels.
String subheading ()
 Accessor for attribute subheading.
String subheading (String subheading)
 Mutator for attribute subheading.
String toString ()
String parentToString ()
 Return string representation of the alleged parent chapter.
Vector anchors ()
 returns a Vector of anchor names in the parsed text.
Vector headings ()
 returns a Vector of headings.
Vector headingLevels ()
 returns a Vector of headingLevels (Integer objects).
Vector subheadings ()
 returns a Vector of subheadings.
boolean isReferring (String ref)
 check if this chapter refers to the passed reference.
void addRef (String ref)
 remember the given ref as a reference this chapter refers to.
void addRef (Vector refs)
 remember the given refs as a reference this chapter refers to.
void addRefLabel (String label)
 remember a reference to the given label as a reference this chapter refers to.
void addRefLabel (Vector labels)
 remember the given label references as a reference this chapter refers to.
Vector findReferences ()
 return a Vector of ref targets this chapter refers to.
boolean onlyIncludeIfReferred ()
 Accessor for attribute onlyIncludeIfReferred.
boolean onlyIncludeIfReferred (boolean onlyIncludeIfReferred)
 Mutator for attribute onlyIncludeIfReferred.

Static Public Member Functions

static String verbatim (String text)
 Alters text so that it can safely used in xhtml as a verbatim text.

Protected Attributes

StringBuffer text = new StringBuffer()
 chapter contents
String title [] = new String[0]
 chapter title
String label = "c" + sequence++
 Unique label of this chapter.
Vector aliasLabels = new Vector()
 alternative labels
String subheading = null
 Subheading / Teaser.
boolean onlyIncludeIfReferred = false
 if set, chapter is only included in the docu if referred by another chapter


Constructor & Destructor Documentation

sfi.director.application.autodoc.DocChapter.DocChapter  ) 
 

sfi.director.application.autodoc.DocChapter.DocChapter String  title[]  ) 
 

sfi.director.application.autodoc.DocChapter.DocChapter DocChapter  parent,
String  title
 

Create a new sub chapter within the given parent chapter.


Member Function Documentation

void sfi.director.application.autodoc.DocChapter.addBlock String  text  ) 
 

Add a text block (a div, actually).

void sfi.director.application.autodoc.DocChapter.addChapterRef DocChapter  ref,
boolean  withSubheading,
String  additionalText
 

Add one reference to a chapter (like addChapterRef(Vector, boolean)).

void sfi.director.application.autodoc.DocChapter.addChapterRef DocChapter  ref,
boolean  withSubheading
 

Add one reference to a chapter (like addChapterRef(Vector, boolean)).

void sfi.director.application.autodoc.DocChapter.addChapterRef Vector  refs,
boolean  withSubheading
 

See also:
addChapterRef( Vector, boolean, Vector )

void sfi.director.application.autodoc.DocChapter.addChapterRef Vector  refs,
boolean  withSubheading,
Vector  texts
 

Add a list of references to chapters.

For conveniency, the chapter vector may contain null values which are ignored.

Parameters:
refs a list of DocChapters to be referred
withSubHeading if true, the subheading text is included in the reference text
texts (optional) list of texts to be included in the respective reference

void sfi.director.application.autodoc.DocChapter.addChapterRefWithTemplate DocChapter  ref,
DocInfo  info
 

Add one reference to a chapter as specified in the DocInfo record.

void sfi.director.application.autodoc.DocChapter.addCode String  text  ) 
 

Add verbatim text that is supposed to be formatted as a code example.

void sfi.director.application.autodoc.DocChapter.addFile String  text  )  throws DirectorException
 

Add content from a PHTML String.

void sfi.director.application.autodoc.DocChapter.addFile File  file  )  throws DirectorException
 

Add contents read from a (optionally xhtml formatted) text file.

File sfi.director.application.autodoc.DocChapter.addImage DocBuilder  builder,
File  imagefile
 

Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument.

File sfi.director.application.autodoc.DocChapter.addImage DocBuilder  builder,
File  imagefile,
String  caption
 

Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument.

File sfi.director.application.autodoc.DocChapter.addImage DocBuilder  builder,
File  imagefile,
int  maxwidth,
int  maxheight,
String  caption
 

Add an image, optionally with caption.

If the images size exceeds a given limit, a thumbnail is generated and a link to the large image inserted. In case a thumbnail is used, addImage() returns the thumbfile, otherwise it returns null.

void sfi.director.application.autodoc.DocChapter.addParagraph String  text  ) 
 

Add a paragraph.

void sfi.director.application.autodoc.DocChapter.addRef Vector  refs  ) 
 

remember the given refs as a reference this chapter refers to.

void sfi.director.application.autodoc.DocChapter.addRef String  ref  ) 
 

remember the given ref as a reference this chapter refers to.

void sfi.director.application.autodoc.DocChapter.addRefLabel Vector  labels  ) 
 

remember the given label references as a reference this chapter refers to.

void sfi.director.application.autodoc.DocChapter.addRefLabel String  label  ) 
 

remember a reference to the given label as a reference this chapter refers to.

void sfi.director.application.autodoc.DocChapter.addTag String  tag,
String  attributes,
String  text
 

void sfi.director.application.autodoc.DocChapter.addText String  text  ) 
 

Add a piece of text to the chapter contents.

void sfi.director.application.autodoc.DocChapter.addToRefChapter DocBuilder  builder,
DocChapter  targetChapter,
String  subChapterTitle
 

Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle.

If the subchapter does not exist, creates one. For conveniency, the targetChapter may be null and in this case the method returns without function.

void sfi.director.application.autodoc.DocChapter.addToRefChapter DocBuilder  builder,
DocChapter  targetChapter,
String  subChapterTitle,
String  additionalText
 

Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle.

If the subchapter does not exist, creates one. For conveniency, the targetChapter may be null and in this case the method returns without function.

Vector sfi.director.application.autodoc.DocChapter.aliasLabels Vector  aliasLabels  ) 
 

Mutator for attribute aliasLabels.

alternative labels

Vector sfi.director.application.autodoc.DocChapter.aliasLabels  ) 
 

Accessor for attribute aliasLabels.

alternative labels

Vector sfi.director.application.autodoc.DocChapter.anchors  ) 
 

returns a Vector of anchor names in the parsed text.

Each anchor name corresponds with an entry in headings().

String [] sfi.director.application.autodoc.DocChapter.childTitle String  title  ) 
 

Vector sfi.director.application.autodoc.DocChapter.findReferences  ) 
 

return a Vector of ref targets this chapter refers to.

String sfi.director.application.autodoc.DocChapter.heading  ) 
 

Return the actual title text with hierarchy stripped off.

This returns the last component of the title hierarchy.

Vector sfi.director.application.autodoc.DocChapter.headingLevels  ) 
 

returns a Vector of headingLevels (Integer objects).

Each entry corresponds with an entry in anchors() / headings()

Vector sfi.director.application.autodoc.DocChapter.headings  ) 
 

returns a Vector of headings.

Each heading corresponds with an entry in anchors().

boolean sfi.director.application.autodoc.DocChapter.isReferring String  ref  ) 
 

check if this chapter refers to the passed reference.

String sfi.director.application.autodoc.DocChapter.label String  label  ) 
 

Mutator for attribute label.

Unique label of this chapter.

String sfi.director.application.autodoc.DocChapter.label  ) 
 

Accessor for attribute label.

Unique label of this chapter.

boolean sfi.director.application.autodoc.DocChapter.onlyIncludeIfReferred boolean  onlyIncludeIfReferred  ) 
 

Mutator for attribute onlyIncludeIfReferred.

if set, chapter is only included in the docu if referred by another chapter

boolean sfi.director.application.autodoc.DocChapter.onlyIncludeIfReferred  ) 
 

Accessor for attribute onlyIncludeIfReferred.

if set, chapter is only included in the docu if referred by another chapter

String sfi.director.application.autodoc.DocChapter.parentToString  ) 
 

Return string representation of the alleged parent chapter.

void sfi.director.application.autodoc.DocChapter.resetText  ) 
 

String sfi.director.application.autodoc.DocChapter.subheading String  subheading  ) 
 

Mutator for attribute subheading.

Subheading / Teaser.

String sfi.director.application.autodoc.DocChapter.subheading  ) 
 

Accessor for attribute subheading.

Subheading / Teaser.

Vector sfi.director.application.autodoc.DocChapter.subheadings  ) 
 

returns a Vector of subheadings.

Each entry corresponds with an entry in anchors() / headings(). If no subheading is available at an index, an empty string is stored in the list.

StringBuffer sfi.director.application.autodoc.DocChapter.text StringBuffer  text  ) 
 

Mutator for attribute text.

chapter contents

StringBuffer sfi.director.application.autodoc.DocChapter.text  ) 
 

Accessor for attribute text.

chapter contents

String [] sfi.director.application.autodoc.DocChapter.title String  title[]  ) 
 

Mutator for attribute title.

chapter title

String [] sfi.director.application.autodoc.DocChapter.title  ) 
 

Accessor for attribute title.

chapter title

String sfi.director.application.autodoc.DocChapter.toString  ) 
 

static String sfi.director.application.autodoc.DocChapter.verbatim String  text  )  [static]
 

Alters text so that it can safely used in xhtml as a verbatim text.


Member Data Documentation

Vector sfi.director.application.autodoc.DocChapter.aliasLabels = new Vector() [protected]
 

alternative labels

String sfi.director.application.autodoc.DocChapter.label = "c" + sequence++ [protected]
 

Unique label of this chapter.

boolean sfi.director.application.autodoc.DocChapter.onlyIncludeIfReferred = false [protected]
 

if set, chapter is only included in the docu if referred by another chapter

String sfi.director.application.autodoc.DocChapter.subheading = null [protected]
 

Subheading / Teaser.

StringBuffer sfi.director.application.autodoc.DocChapter.text = new StringBuffer() [protected]
 

chapter contents

String sfi.director.application.autodoc.DocChapter.title[] = new String[0] [protected]
 

chapter title


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 01:20:03 2012 for Node Director by  doxygen 1.4.5