de.goerntkai.scot.app.document
Class SimpleElement

java.lang.Object
  extended byde.goerntkai.scot.app.document.SCoTElement
      extended byde.goerntkai.scot.app.document.SimpleElement
All Implemented Interfaces:
ISCoTComponent

public class SimpleElement
extends SCoTElement

Represents an usual element like <p>.

Author:
Kai Görnt

Constructor Summary
SimpleElement(java.lang.String line)
          Inherited from the SCoTElement.
 
Method Summary
 org.w3c.dom.Node toHTML(org.w3c.dom.Document doc)
          Returns the HTML representation of the element.
 
Methods inherited from class de.goerntkai.scot.app.document.SCoTElement
getParts, getTagName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleElement

public SimpleElement(java.lang.String line)
              throws SCoTException
Inherited from the SCoTElement. Passes the line through to the superclass.

Parameters:
line - the line as found in the SCoT document
Throws:
SCoTException
Method Detail

toHTML

public org.w3c.dom.Node toHTML(org.w3c.dom.Document doc)
Returns the HTML representation of the element. Uses the parent document for creating the node. Returns null if the tag name is an empty String.

Specified by:
toHTML in interface ISCoTComponent
Specified by:
toHTML in class SCoTElement
Parameters:
doc - the parent document
Returns:
the HTML representation
See Also:
SCoTElement.toHTML(org.w3c.dom.Document)


© 2004 by Kai Görnt