org.jopendocument.dom
Class ImmutableDocStyledNode<S extends StyleStyle,D extends ODDocument>

java.lang.Object
  extended by org.jopendocument.dom.ODNode
      extended by org.jopendocument.dom.StyledNode<S,D>
          extended by org.jopendocument.dom.ImmutableDocStyledNode<S,D>
Direct Known Subclasses:
Cell, Column, ODFrame, Row, Table

public class ImmutableDocStyledNode<S extends StyleStyle,D extends ODDocument>
extends StyledNode<S,D>


Constructor Summary
  ImmutableDocStyledNode(D parent, org.jdom.Element local, Class<S> styleClass)
          Create a new instance.
protected ImmutableDocStyledNode(D parent, org.jdom.Element local, StyleDesc<S> styleDesc)
           
 
Method Summary
protected  ODXMLDocument getContent()
           
 D getODDocument()
           
 
Methods inherited from class org.jopendocument.dom.StyledNode
getPrivateStyle, getStyle, getStyle, getStyle, getStyle, getStyleDesc, getStyleDesc, getStyleDesc, getStyleName, getStyleStyleDesc, setStyleName, setStyleName
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableDocStyledNode

public ImmutableDocStyledNode(D parent,
                              org.jdom.Element local,
                              Class<S> styleClass)
Create a new instance. We used to find the StyleStyle class with reflection but this was slow.

Parameters:
parent - the parent document.
local - our XML model.
styleClass - our class of style, cannot be null.

ImmutableDocStyledNode

protected ImmutableDocStyledNode(D parent,
                                 org.jdom.Element local,
                                 StyleDesc<S> styleDesc)
Method Detail

getODDocument

public final D getODDocument()
Specified by:
getODDocument in class StyledNode<S extends StyleStyle,D extends ODDocument>

getContent

protected final ODXMLDocument getContent()


Copyright © 2010 jOpenDocument All Rights Reserved.