org.jopendocument.dom.text
Class Paragraph

java.lang.Object
  extended by org.jopendocument.dom.ODNode
      extended by org.jopendocument.dom.StyledNode<S,TextDocument>
          extended by org.jopendocument.dom.text.TextNode<ParagraphStyle>
              extended by org.jopendocument.dom.text.Paragraph
Direct Known Subclasses:
Heading

public class Paragraph
extends TextNode<ParagraphStyle>

A text paragraph, the basic unit of text. See ยง4.1 of the OpenDocument specification.


Constructor Summary
Paragraph()
           
Paragraph(org.jdom.Element elem)
           
Paragraph(java.lang.String text)
           
Paragraph(XMLVersion ns)
           
 
Method Summary
 void addContent(java.lang.String text)
           
 void addStyledContent(java.lang.String text, java.lang.String styleName)
           
 void addTab()
           
 ParagraphStyle getConditionalStyle()
          A style containing conditions and maps to other styles.
 java.lang.String toString()
           
 
Methods inherited from class org.jopendocument.dom.text.TextNode
getCharacterContent, getCharacterContent, getCharacterContent, getChildrenCharacterContent, getODDocument, setDocument
 
Methods inherited from class org.jopendocument.dom.StyledNode
getPrivateStyle, getStyle, getStyleDesc, getStyleDesc, getStyleStyleDesc, setStyleName, setStyleName
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph(org.jdom.Element elem)

Paragraph

public Paragraph(XMLVersion ns)

Paragraph

public Paragraph()

Paragraph

public Paragraph(java.lang.String text)
Method Detail

getConditionalStyle

public final ParagraphStyle getConditionalStyle()
A style containing conditions and maps to other styles.

Returns:
the conditional style or null if none or if this isn't in a document.

addContent

public final void addContent(java.lang.String text)

addTab

public final void addTab()

addStyledContent

public final void addStyledContent(java.lang.String text,
                                   java.lang.String styleName)

toString

public java.lang.String toString()
Overrides:
toString in class ODNode