|
||||||||||
| 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
public abstract class XMLDataElement
A classe XMLDataElement representa um elemento XML que não
possui filhos.
| Constructor Summary | |
|---|---|
XMLDataElement()
|
|
| Method Summary | |
|---|---|
void |
write(Writer stream,
String ident)
Escreve o elemento em um stream de saída (tag de abertura + atributos, valor e tag de fechamento). |
static void |
write(Writer stream,
String ident,
String tag,
double value)
Escreve o elemento em um stream de saída (tag de abertura, valor (double) e tag de fechamento). |
static void |
write(Writer stream,
String ident,
String tag,
int value)
Escreve o elemento em um stream de saída (tag de abertura, valor ( int) e tag de fechamento). |
static void |
write(Writer stream,
String ident,
String tagName,
String value)
Escreve o elemento em um stream de saída (tag de abertura, valor e tag de fechamento). |
static void |
writeEndTag(String tagName,
Writer stream)
Escreve uma tag de fechamento arbitrária, sem identação. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tecgraf.javautils.xml.XMLElementInterface |
|---|
endTag |
| Constructor Detail |
|---|
public XMLDataElement()
| Method Detail |
|---|
public void write(Writer stream,
String ident)
throws IOException
stream - stream de saídaident - identação
IOException - se houver problemas na escrita
public static void write(Writer stream,
String ident,
String tagName,
String value)
throws IOException
stream - stream de saídaident - identaçãotagName - tag do elementovalue - valor do elemento
IOException - se houve algum problema na escrita
public static void write(Writer stream,
String ident,
String tag,
double value)
throws IOException
double para String.
stream - stream de saídaident - identaçãotag - tagvalue - valor (double)
IOException - se houve algum problema na escrita
public static void write(Writer stream,
String ident,
String tag,
int value)
throws IOException
int) e tag de fechamento). O elemento não deve possuir
atributos, e seu valor será convertido de int para
String.
stream - stream de saídaident - identaçãotag - tagvalue - valor (int)
IOException - se houve algum problema na escrita
public static void writeEndTag(String tagName,
Writer stream)
throws IOException
tagName - tagstream - stream de saída
IOException - se houve algum erro de I/O durante a escrita
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||