|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.goerntkai.scot.app.document.SCoTCommando
A SCoTCommando
is content which HTML representation is an
inline tag or an entity like
.
SCoTCommando
holds the parameters given with the commando
and parses the commando string. A class which inherits from
SCoTCommando
must implement NewCommando(String
commando)
which calls super(commando)
.
Constructor Summary | |
SCoTCommando(java.lang.String commando)
This constructor parses the given commando. |
Method Summary | |
org.w3c.dom.Node |
getCommandoAsHTML(org.w3c.dom.Document doc,
int index)
Returns the given subcommando as its HTML representation. |
java.lang.String |
getParameter(int index)
Returns the parameter of the given index. |
abstract org.w3c.dom.Node |
toHTML(org.w3c.dom.Document doc)
Returns the HTML representation of the commando. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SCoTCommando(java.lang.String commando)
This constructor parses the given commando. The commando given must
have the format <commando> ::= {<parameter>[;
<parameter>]*}
.
commando
- the commando string as found in the SCoT documentMethod Detail |
public java.lang.String getParameter(int index)
Returns the parameter of the given index. If the index is not in the
range of this.parameters[]
, null
will be
returned.
index
- the number of the parameter to return
public org.w3c.dom.Node getCommandoAsHTML(org.w3c.dom.Document doc, int index)
Returns the given subcommando as its HTML representation. This is only for use with subcommandos.
doc
- the parent documentindex
- the number of the commando to return
public abstract org.w3c.dom.Node toHTML(org.w3c.dom.Document doc)
Returns the HTML representation of the commando. Uses the parent document for creating the node.
toHTML
in interface ISCoTComponent
doc
- the parent document
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |