public abstract class XMLBasicElement extends XMLElement
XMLBasicElement representa elementos XML que têm
filhos.| Modifier | Constructor and Description |
|---|---|
protected |
XMLBasicElement()
Construtor vazio.
|
protected |
XMLBasicElement(String tag)
Cria um novo elemento com a tag especificada.
|
| Modifier and Type | Method and Description |
|---|---|
static XMLElementInterface |
getFirstChildWithTag(List<XMLElementInterface> children,
String tagName)
Método estático para buscar a primeira ocorrência de um elemento XML em uma
lista de elementos pela sua tag.
|
static String |
getNextIdentation(String ident)
Retorna a string correspondente ao próximo nível de identação baseado na
identação corrente e na identação default definido em
XMLWriter. |
static void |
writeEndTag(String tagName,
Writer stream,
String ident)
Escreve uma tag de fechamento arbitrária, com identação.
|
static void |
writeStartTag(String tagName,
Writer writer,
String ident)
Escreve uma tag de abertura arbitrária, sem "\n" no final e sem atributos.
|
static void |
writeStartTag(String tagName,
Writer writer,
String ident,
List<? extends XMLAttribute> attrs)
Escreve uma tag de abertura arbitrária (sem "\n" no final), com uma lista
de atributos (
XMLAttribute) também arbitrária. |
static void |
writeStartTagln(String tagName,
Writer stream,
String ident)
Escreve uma tag de abertura arbitrária (i.e.
|
static void |
writeStartTagln(String tagName,
Writer writer,
String ident,
List<? extends XMLAttribute> attrs)
Escreve uma tag de abertura arbitrária (com "\n" no final), com uma lista
de atributos (
XMLAttribute) também arbitrária. |
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, waitendTag, writeprotected XMLBasicElement()
protected XMLBasicElement(String tag)
tag - public static void writeStartTagln(String tagName, Writer stream, String ident) throws IOException
tagName - tagstream - stream de saídaident - identaçãoIOException - se houve algum erro de I/O durante a escritapublic static void writeStartTagln(String tagName, Writer writer, String ident, List<? extends XMLAttribute> attrs) throws IOException
XMLAttribute) também arbitrária.tagName - tagwriter - stream de saídaident - identaçãoattrs - lista de attributos (XMLAttribute)IOException - se houve algum erro de I/O durante a escritapublic static void writeStartTag(String tagName, Writer writer, String ident, List<? extends XMLAttribute> attrs) throws IOException
XMLAttribute) também arbitrária.tagName - tagwriter - stream de saídaident - identaçãoattrs - lista de attributos (XMLAttribute)IOException - se houve algum erro de I/O durante a escritapublic static void writeStartTag(String tagName, Writer writer, String ident) throws IOException
tagName - tagwriter - stream de saídaident - identaçãoIOException - se houve algum erro de I/O na escritapublic static void writeEndTag(String tagName, Writer stream, String ident) throws IOException
tagName - tagstream - stream de saídaident - identaçãoIOException - se houve algum erro de I/O durante a escritapublic static String getNextIdentation(String ident)
XMLWriter.ident - identação correntepublic static XMLElementInterface getFirstChildWithTag(List<XMLElementInterface> children, String tagName)
children - lista de elementostagName - tag a ser buscadanull caso
contrárioCopyright © 2016 Tecgraf/PUC-Rio. All rights reserved.