|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.javautils.xml.XMLElement
tecgraf.javautils.xml.XMLDataElement
tecgraf.javautils.xml.XMLNullDataElement
tecgraf.javautils.xml.XMLEmptyElement
public class XMLEmptyElement
Elemento XML vazio (<tag attr1="val1" attr2="val2" ... />).
| Constructor Summary | |
|---|---|
XMLEmptyElement()
|
|
| Method Summary | |
|---|---|
String |
getStrValue()
Retorno do texto interno. |
void |
write(Writer stream,
String ident)
Escreve o elemento corrente (o que significa, no caso de elementos vazios, escrever apenas a tag de abertura). |
void |
writeEndTag(Writer stream,
String ident)
(Não) escreve a tag de fechamento. |
void |
writeStartTag(Writer stream,
String ident)
Escreve a tag de abertura, no formato compatível com elementos vazios. |
void |
writeStartTagln(Writer stream,
String ident)
Escreve a tag de abertura, no formato compatível com elementos vazios, e adiciona um fim-de-linha. |
| Methods inherited from class tecgraf.javautils.xml.XMLNullDataElement |
|---|
endTag |
| Methods inherited from class tecgraf.javautils.xml.XMLDataElement |
|---|
write, write, write, writeEndTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLEmptyElement()
| Method Detail |
|---|
public final void writeEndTag(Writer stream,
String ident)
throws IOException
writeEndTag in interface XMLElementInterfacewriteEndTag in class XMLElementstream - stream de saida.ident - identação
IOException - se houver algum erro de escrita
public final void writeStartTag(Writer stream,
String ident)
throws IOException
writeStartTag in interface XMLElementInterfacewriteStartTag in class XMLElementstream - stream de saida.ident - identação
IOException - se houver algum erro de escrita
public final void writeStartTagln(Writer stream,
String ident)
throws IOException
writeStartTagln in interface XMLElementInterfacewriteStartTagln in class XMLElementstream - stream de saida.ident - identação
IOException - se houver algum erro de escritapublic final String getStrValue()
getStrValue in interface XMLElementInterfacegetStrValue in class XMLElementXMLElementInterface.getStrValue()
public void write(Writer stream,
String ident)
throws IOException
write in interface XMLElementInterfacewrite in class XMLDataElementstream - stream de saida.ident - identação
IOException - se houver problemas na escrita
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||