de.goerntkai.scot.app.document
Class HeaderDocument

java.lang.Object
  extended byde.goerntkai.scot.app.document.SCoTDocument
      extended byde.goerntkai.scot.app.document.HeaderDocument

public class HeaderDocument
extends SCoTDocument

Represents a file which is found in ./contents named as its parent folder.

Version:
$Id: HeaderDocument.java,v 1.6 2005/05/16 13:16:03 GoerntKai Exp $
Author:
Kai Görnt

Constructor Summary
HeaderDocument(java.lang.String path, Configuration aConfiguration)
          Instantiates one content.order file.
 
Method Summary
 SCoTBlock[] getContent()
          Returns the content as an array of SCoTBlocks.
 SCoTBlock[] getOverview(java.lang.String meaning)
          Returns the overview as an array of SCoTBlocks.
 ISCoTComponent getStylesheet()
          Deprecated.  
 ISCoTComponent[] getStylesheets()
          Returns the array of stylesheets for that HTML document.
 ISCoTComponent getTitle()
          Returns the title element for that HTML document.
 
Methods inherited from class de.goerntkai.scot.app.document.SCoTDocument
getBlocks, getConfiguration, getLine, getLines, getLines, getLines, getReference, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderDocument

public HeaderDocument(java.lang.String path,
                      Configuration aConfiguration)
               throws java.io.FileNotFoundException

Instantiates one content.order file.

Parameters:
path - path and name of the file
aConfiguration - the configuration of this application
Throws:
java.io.FileNotFoundException
Method Detail

getContent

public SCoTBlock[] getContent()
                       throws java.io.FileNotFoundException

Returns the content as an array of SCoTBlocks.

Returns:
array of SCoTBlocks
Throws:
java.io.FileNotFoundException

getOverview

public SCoTBlock[] getOverview(java.lang.String meaning)
                        throws java.io.FileNotFoundException

Returns the overview as an array of SCoTBlocks.

Parameters:
meaning - the meanining of the link line
Returns:
array of SCoTBlocks
Throws:
java.io.FileNotFoundException

getStylesheet

public ISCoTComponent getStylesheet()
Deprecated.  

Returns the stylesheet for that HTML document.

Returns:
the stylesheet

getStylesheets

public ISCoTComponent[] getStylesheets()

Returns the array of stylesheets for that HTML document. The definition of the stylesheets is stored in the SCoT document.

Returns:
the array of stylesheets

getTitle

public ISCoTComponent getTitle()

Returns the title element for that HTML document.

Returns:
the title element


© 2004 by Kai Görnt