se.biltmore.tools.odttoapt.maven.plugin.models
Class APTDocument

java.lang.Object
  extended by se.biltmore.tools.odttoapt.maven.plugin.models.APT
      extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTParent
          extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTDocument

public class APTDocument
extends APTParent

This is the top model. It represents a complete APT document. It accepts section titles, paragraphs, and lists as children. The getValue() method will return a complete APT document.


Field Summary
private  APTDocumentAttribute author
          The document author
private  APTDocumentAttribute date
          The document date.
private  APTDocumentAttribute title
          The document title.
 
Constructor Summary
APTDocument()
           
 
Method Summary
 void addChild(APT child)
          Adds a child to the document.
 void addParagraph(APTParagraph paragraph)
          A document only takes paragraphs as children.
 String getValue()
          This returns the complete APT document as a String.
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APTParent
getChildren, getLastChild, getUnformattedValue, hasChildren
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APT
done, formatText, getParent, hasValue, isAllowFormat, isLink, setAllowFormat, setLink, setParent, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

title

private APTDocumentAttribute title
The document title.


author

private APTDocumentAttribute author
The document author


date

private APTDocumentAttribute date
The document date.

Constructor Detail

APTDocument

public APTDocument()
Method Detail

addParagraph

public void addParagraph(APTParagraph paragraph)
A document only takes paragraphs as children.

Parameters:
paragraph - The paragraph to add.

addChild

public void addChild(APT child)
Adds a child to the document.

Overrides:
addChild in class APTParent
Parameters:
child - The child to add.

getValue

public String getValue()
This returns the complete APT document as a String.

Overrides:
getValue in class APT


Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.