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, java.lang.Class<S> styleClass)
          Create a new instance.
 
Method Summary
 D getODDocument()
           
 
Methods inherited from class org.jopendocument.dom.StyledNode
getPrivateStyle, getStyle, getStyleDesc, getStyleDesc, getStyleStyleDesc, setStyleName, setStyleName
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableDocStyledNode

public ImmutableDocStyledNode(D parent,
                              org.jdom.Element local,
                              java.lang.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.
Method Detail

getODDocument

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