|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kiwi.text.SGMLElement
This class represents an SGML element. It includes the element tag as well as a hash table of all of the tag's parameters and their values.
An example SGML element might look like this:
<img src="image.gif" width=100 height=150>
In this case img is the tag, and width and height are the parameters, with values 100 and 150, respectively.
Constructor Summary | |
SGMLElement()
Construct a new SGMLElement . |
|
SGMLElement(String tag,
boolean end)
Construct a new SGMLElement . |
Method Summary | |
void |
addParam(String name,
String value)
Add a parameter. |
Enumeration |
getParamNames()
Get parameter names. |
String |
getParamValue(String name)
Get a parameter value. |
String |
getTag()
Get the tag. |
boolean |
isEnd()
Check if this is an end tag. |
void |
setEnd(boolean end)
Set the end tag flag. |
void |
setTag(String tag)
Set the tag. |
String |
toString()
Create a string representatin of the element. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SGMLElement(String tag, boolean end)
SGMLElement
.tag
- The element's tag.end
- A boolean flag specifying whether this is an end tag. For
example,
is an end tag.public SGMLElement()
SGMLElement
. The tag is set to the empty
string and the end flag is set to false.Method Detail |
public boolean isEnd()
public void setEnd(boolean end)
end
- The new end tag flag value.public void setTag(String tag)
tag
- The new tag.public String getTag()
public void addParam(String name, String value)
name
- The name of the parameter.value
- The value of the parameter (may be null).public String getParamValue(String name)
name
- The name of the parameter.public Enumeration getParamNames()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |