|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjimm.twice.xml.dom.Element
jimm.twice.xml.dom.NamedElement
jimm.twice.xml.dom.NamedAttributes
jimm.twice.xml.dom.Tag
An XML tag with attributes.
| Field Summary |
| Fields inherited from class jimm.twice.xml.dom.NamedAttributes |
attrs |
| Fields inherited from class jimm.twice.xml.dom.NamedElement |
name |
| Fields inherited from class jimm.twice.xml.dom.Element |
CLOSE_TAG, OPEN_AND_CLOSE_TAG, OPEN_TAG |
| Constructor Summary | |
Tag(java.lang.String name)
Constructor. |
|
Tag(java.lang.String name,
java.util.Map attrs)
Constructor. |
|
| Method Summary | |
void |
writeTo(java.io.OutputStream out,
int openOrClose)
Writes this element as an XML string. |
| Methods inherited from class jimm.twice.xml.dom.NamedAttributes |
getAttribute, setAttribute, writeAttributes |
| Methods inherited from class jimm.twice.xml.dom.NamedElement |
getName |
| Methods inherited from class jimm.twice.xml.dom.Element |
writeTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Tag(java.lang.String name)
name - the element's name
public Tag(java.lang.String name,
java.util.Map attrs)
name - the element's nameattrs - the element's attributes; may be null| Method Detail |
public void writeTo(java.io.OutputStream out,
int openOrClose)
throws java.io.IOException
ElementopenOrClose determines if the open tag
(OPEN_TAG), close tag (CLOSE_TAG), or both
(OPEN_AND_CLOSE_TAG) should be returned.
writeTo in class Elementout - the output writeropenOrClose - one of OPEN_TAG, CLOSE_TAG,
or OPEN_AND_CLOSE_TAG
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||