|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.goerntkai.scot.app.document.SCoTBlock
A SCoTBlock
is just a container for
ISCoTComponent
s.
A SCoTBlock
is content which HTML representation is a
blockbuilding tag. SCoTBlock
consists usually of one or more
lines in the SCoT document.
Constructor Summary | |
SCoTBlock()
Deprecated. |
|
SCoTBlock(Configuration aConfiguration)
This constructor sets the configuration. |
Method Summary | |
void |
add(ISCoTComponent component)
Adds another component. |
abstract void |
add(java.lang.String line)
Adds another component from a line string. |
org.w3c.dom.Attr[] |
getAttributes(org.w3c.dom.Document doc)
Returns the attributes for this block as an array of DOM nodes. |
ISCoTComponent[] |
getComponents()
Returns all components belonging to this block as an array. |
Configuration |
getConfiguration()
|
ISCoTComponent |
getLastComponent()
Returns the last component. |
abstract 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. |
void |
replaceLastComponentBy(ISCoTComponent component)
Replaces the last component by the given one. |
void |
setAttributes(java.lang.String[] someAttributes)
Sets the attributes for this block. |
abstract org.w3c.dom.Node |
toHTML(org.w3c.dom.Document doc)
Returns the HTML representation of the element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SCoTBlock()
The standard constructor. Does nothing special.
public SCoTBlock(Configuration aConfiguration)
This constructor sets the configuration.
aConfiguration
- the configuration of this applicationMethod Detail |
public void add(ISCoTComponent component)
Adds another component.
component
- the new ISCoTComponent
public abstract void add(java.lang.String line) throws SCoTException
Adds another component from a line string.
line
- the definition of the new component
SCoTException
public org.w3c.dom.Attr[] getAttributes(org.w3c.dom.Document doc)
Returns the attributes for this block as an array of DOM nodes. This method uses the parent document to create the attribute nodes.
Returns null
if the attributes are not set.
doc
- the parent document
public ISCoTComponent[] getComponents()
Returns all components belonging to this block as an array.
ISCoTComponent
spublic Configuration getConfiguration()
public ISCoTComponent getLastComponent()
Returns the last component.
ISCoTComponent
public abstract 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.
line
- the line to be checked
public void replaceLastComponentBy(ISCoTComponent component)
Replaces the last component by the given one.
component
- the new component to replace the last onepublic void setAttributes(java.lang.String[] someAttributes)
Sets the attributes for this block.
someAttributes
- the attributes to setpublic abstract 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
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 |