|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.goerntkai.scot.app.document.SCoTBlock
de.goerntkai.scot.app.document.ListBlock
Represents a block of lines forming an ordered list, an unordered list or a definition list. An ordered list or an unordered list may be substructured with another ordered or unordered list.
Constructor Summary | |
ListBlock(java.lang.String line)
Deprecated. |
|
ListBlock(java.lang.String line,
Configuration aConfiguration)
This constructor interpretes the given line. |
Method Summary | |
void |
add(java.lang.String line)
Adds a new element to the components. |
boolean |
isMeaningEqual(java.lang.String line)
Returns true when the meaning of the line is the same
as the meaning of the block and false if not. |
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.SCoTBlock |
add, getAttributes, getComponents, getConfiguration, getLastComponent, replaceLastComponentBy, setAttributes |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListBlock(java.lang.String line) throws SCoTException
Only for testing!
line
-
SCoTException
public ListBlock(java.lang.String line, Configuration aConfiguration) throws SCoTException
This constructor interpretes the given line. The line given must
have the format <line> ::=
<meaning>+<content>
.
line
- the line as found in a SCoT documentaConfiguration
- the configuration of this application
SCoTException
Method Detail |
public void add(java.lang.String line) throws SCoTException
Adds a new element to the components. This method creates a new
ListBlock
if the line belongs to a sub list (may only be
in ordered or unordered lists).
add
in class SCoTBlock
line
- the new component line
SCoTException
SCoTBlock.add(java.lang.String)
public boolean isMeaningEqual(java.lang.String line)
Returns true
when the meaning of the line is the same
as the meaning of the block and false
if not.
The meaning of the line is equal to the meaning of the block if the
first character of the line is equal to the meaning of the block. In
case that the line has meaning '.'
the meaning of the line
is switched to '?'
.
isMeaningEqual
in class SCoTBlock
line
- the line to be checked
SCoTBlock.isMeaningEqual(java.lang.String)
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.
toHTML
in interface ISCoTComponent
toHTML
in class SCoTBlock
doc
- the parent document
ISCoTComponent.toHTML(org.w3c.dom.Document)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |