|
||||||||||
| 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.XMLBasicElement
public abstract class XMLBasicElement
A classe XMLBasicElement representa elementos XML que têm
filhos.
| Constructor Summary | |
|---|---|
protected |
XMLBasicElement()
Construtor vazio. |
protected |
XMLBasicElement(String tag)
Cria um novo elemento com a tag especificada. |
| Method Summary | |
|---|---|
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. |
| 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, write |
| Constructor Detail |
|---|
protected XMLBasicElement()
protected XMLBasicElement(String tag)
tag - | Method Detail |
|---|
public static void writeStartTagln(String tagName,
Writer stream,
String ident)
throws IOException
tagName - tagstream - stream de saídaident - identação
IOException - se houve algum erro de I/O durante a escrita
public 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 escrita
public 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 escrita
public static void writeStartTag(String tagName,
Writer writer,
String ident)
throws IOException
tagName - tagwriter - stream de saídaident - identação
IOException - se houve algum erro de I/O na escrita
public static void writeEndTag(String tagName,
Writer stream,
String ident)
throws IOException
tagName - tagstream - stream de saídaident - identação
IOException - se houve algum erro de I/O durante a escritapublic static String getNextIdentation(String ident)
XMLWriter.
ident - identação corrente
public static XMLElementInterface getFirstChildWithTag(List<XMLElementInterface> children,
String tagName)
children - lista de elementostagName - tag a ser buscada
null caso
contrário
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||