public abstract class XMLDataElement extends XMLElement
XMLDataElement representa um elemento XML que não
possui filhos.| Constructor and Description |
|---|
XMLDataElement() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
appendValue, convertTextToXML, convertValueFromXML, getAppContextObject, getAppObject, getAttributeBooleanValue, getAttributeDoubleValue, getAttributeIntValue, getAttributes, getAttributeStrValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getStrValue, getStrValue, getTag, hasAttribute, hasValue, isEmpty, newAttribute, newAttribute, newAttribute, newAttribute, newAttribute, newAttribute, newAttributeList, newCharsEvent, resetAttributeList, resetValue, setAppContextObject, setAppObject, setTag, setValue, setValue, startTag, writeAttributes, writeAttributes, writeEndTag, writeEndTag, writeStartTag, writeStartTagln, writeValue, xmlEncodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendTagpublic void write(Writer stream, String ident) throws IOException
stream - stream de saídaident - identaçãoIOException - se houver problemas na escritapublic 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 elementoIOException - se houve algum problema na escritapublic 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 escritapublic 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 escritapublic static void writeEndTag(String tagName, Writer stream) throws IOException
tagName - tagstream - stream de saídaIOException - se houve algum erro de I/O durante a escritaCopyright © 2016 Tecgraf/PUC-Rio. All rights reserved.